From 040ec3f38208e682304f3415c6427377230e8c51 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Thu, 29 Oct 2026 10:08:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E4=B8=8D=E6=B8=85=E9=99=A4=E8=AE=B0=E4=BD=8F=E6=88=91?= =?UTF-8?q?=E7=9A=84=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 84c1865..27fa795 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -87,8 +87,8 @@ export const useUserStore = defineStore('user', { this.setToken('') this.setUserInfo(undefined) this.setRoleRouters([]) - this.setLoginInfo(undefined) - this.setRememberMe(false) + // 注意:不能清 loginInfo / rememberMe —— 那是「记住我」存的账号密码, + // 退出登录后回到登录页还要靠它来回填,清了就等于「记住我」没生效。 tagsViewStore.delAllViews() // 菜单/路由一起清:否则换账号后 permissionStore 里还是上一个账号的路由表 permissionStore.clearRoutes()