Explorar o código

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

ZhangWenQiang %!s(int64=6) %!d(string=hai) anos
pai
achega
c15272bd9e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) => {