Quellcode durchsuchen

:zap: 登录错误loading关闭

smallchill vor 7 Jahren
Ursprung
Commit
f44f648bc7
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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()
           });
         }
       });