Parcourir la source

登录button添加loading属性,校验失败属性变为false

ZhangWenQiang il y a 6 ans
Parent
commit
c15272bd9e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/user/Login.vue

+ 1 - 1
src/views/user/Login.vue

@@ -212,10 +212,10 @@
       },
       handleSubmit() {
         let that = this
+        that.loading = true;
         let loginParams = {
           remember_me: that.formLogin.rememberMe
         }
-        that.loading = true;
         // 使用账户密码登陆
         if (that.customActiveKey === 'tab1') {
           that.form.validateFields(['username', 'password', 'inputCode'], { force: true }, (err, values) => {