Explorar o código

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

zhaoke %!s(int64=3) %!d(string=hai) anos
pai
achega
66f93d7ce4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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`);
       }
     },
     //修改密码