From a0e4aa6bb7907d21c3f526e3d67f081c634f039b Mon Sep 17 00:00:00 2001 From: yelan Date: Tue, 6 Oct 2026 16:59:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=94=B9=E4=B8=BA=E7=9C=9F=E5=AE=9E=E9=80=80=E5=87=BA?= =?UTF-8?q?=EF=BC=88=E6=95=B4=E9=A1=B5=E8=B7=B3=E8=BD=AC=20+=20=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E7=A1=AE=E8=AE=A4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 沿用远端的账户菜单与个人信息实现(AccountPanel + useAccountPanel), 仅补齐它缺的退出部分: - 二次确认后再注销,避免误点直接下线 - 退出改为整页跳转 window.location.replace('/login'):SPA 内跳转只清得掉 store 里被显式重置过的字段,模块级缓存、其余 store 与页面组件持有的数据 都会留在内存里;整页重载一次才叫真正的退出(与 utils/request.ts 的 401 同款) - 配套的 clearSession() 重置跨账号内存态(院区列表与选中项)见前序提交 --- clinical-web/src/components/layout/Menu.vue | 39 +++++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/clinical-web/src/components/layout/Menu.vue b/clinical-web/src/components/layout/Menu.vue index 7b3a1f5..cf0a6cb 100644 --- a/clinical-web/src/components/layout/Menu.vue +++ b/clinical-web/src/components/layout/Menu.vue @@ -1,12 +1,12 @@