重置密码:优化接入

This commit is contained in:
YunaiV
2023-12-17 17:52:49 +08:00
parent 22fffcb029
commit 2c7d89d711
7 changed files with 20 additions and 33 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export function getSmsCode(event, mobile = '') {
case 'resetPassword':
scene = 4;
}
$api.app.sendSms(mobile, scene).then((res) => {
$api.AuthUtil.sendSmsCode(mobile, scene).then((res) => {
if (res.code === 0) {
modalStore.$patch((state) => {
state.lastTimer[event] = dayjs().unix();