Преглед изворни кода

修改账号退出再次登录跳转

zhaoke пре 2 година
родитељ
комит
66f93d7ce4
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/layout/index.vue

+ 2 - 2
src/layout/index.vue

@@ -140,13 +140,13 @@ export default {
         removeToken();
         sessionStorage.clear();
         this.$store.dispatch("app/toggleOutflag", false);
-        this.$router.push(`/login?redirect=${this.$route.fullPath}`);
+        this.$router.push(`/login`);
         location.reload();
       } else {
         sessionStorage.removeItem("userName");
         this.$store.dispatch("app/toggleOutflag", false);
         const res = await this.$store.dispatch("user/logout");
-        this.$router.push(`/login?redirect=${this.$route.fullPath}`);
+        this.$router.push(`/login`);
       }
     },
     //修改密码