Explorar el Código

:zap: 登录错误loading关闭

smallchill hace 7 años
padre
commit
f44f648bc7
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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()
           });
         }
       });