Przeglądaj źródła

:zap: 登录错误loading关闭

smallchill 7 lat temu
rodzic
commit
f44f648bc7
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/page/login/userlogin.vue

+ 2 - 0
src/page/login/userlogin.vue

@@ -101,6 +101,8 @@ export default {
           this.$store.dispatch("LoginByUsername", this.loginForm).then(() => {
             this.$router.push({ path: this.tagWel.value });
             loading.close();
+          }).catch(() => {
+            loading.close()
           });
         }
       });