wangJJ há 5 anos atrás
pai
commit
63ebe45373
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      src/pages/UserCenter/ReBindingMail.vue

+ 1 - 2
src/pages/UserCenter/ReBindingMail.vue

@@ -98,11 +98,11 @@
           email: this.emailBindingForm.email
         }
         Http.put('/api/verify/email', params).then((res) => {
-          this.hasVerifyCode = true;
           let _this = this;
           if (res.msg == "ERROR") {
             notify('error', '验证码获取失败:' + res.data);
           }else{
+            this.hasVerifyCode = true;
             notify('success', res.data);
             let codeTimer = setInterval(function () {
               if (_this.codeTime > 0) {
@@ -114,7 +114,6 @@
               }
             }, 1000)
           }
-
         }).catch(err => {
           notify('error', '获取验证码失败:' + err.data);
         })