Forráskód Böngészése

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

sequoia tungfang 2 hete%!(EXTRA string=óta)
szülő
commit
185ce81564
1 módosított fájl, 1 hozzáadás és 3 törlés
  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++;