소스 검색

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

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`);
       }
     },
     //修改密码