소스 검색

feat: 登录成功直接跳转到mian页面

sequoia tungfang 2 주 전
부모
커밋
185ce81564
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/views/Login.vue

+ 1 - 3
src/views/Login.vue

@@ -106,9 +106,7 @@ export default {
         this.loginFailedCount = 0;
         sessionStorage.removeItem("loginFailedCount");
         localStorage.setItem("token", data.token);
-        setTimeout(() => {
-          this.$router.push('/transition').catch(() => {});
-        }, 300);
+        this.$router.push('/main').catch(() => {});
       } catch (e) {
         this.hint = e.message || "登录失败";
         this.loginFailedCount++;