Procházet zdrojové kódy

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

ZhangWenQiang před 6 roky
rodič
revize
c15272bd9e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/views/user/Login.vue

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

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