| @@ -486,11 +486,13 @@ export default { | |||
| this.loginMethodChange(1); | |||
| } else { | |||
| sendMsg(0, data.msg); | |||
| this.getVerificationCode(); | |||
| } | |||
| this.loginLoading = false; | |||
| }) | |||
| .catch((err) => { | |||
| sendMsg(0, "修改失败"); | |||
| this.getVerificationCode(); | |||
| console.log(err); | |||
| this.loginLoading = false; | |||
| }); | |||
| @@ -510,11 +512,13 @@ export default { | |||
| this.loginSuccessFn(); | |||
| } else { | |||
| sendMsg(0, data.msg); | |||
| this.getVerificationCode(); | |||
| } | |||
| this.loginLoading = false; | |||
| }) | |||
| .catch((err) => { | |||
| sendMsg(0, "登录失败"); | |||
| this.getVerificationCode(); | |||
| console.log(err); | |||
| this.loginLoading = false; | |||
| }); | |||
| @@ -549,12 +553,14 @@ export default { | |||
| this.loginSuccessFn(); | |||
| } else { | |||
| sendMsg(0, data.msg); | |||
| this.getVerificationCode(); | |||
| } | |||
| this.loginLoading = false; | |||
| }) | |||
| .catch((err) => { | |||
| sendMsg(0, "注册失败"); | |||
| console.log(err); | |||
| this.getVerificationCode(); | |||
| this.loginLoading = false; | |||
| }); | |||
| }, | |||