From c8de1ad22981040c1039f8ffffe0b52d6a3dc250 Mon Sep 17 00:00:00 2001 From: YoYo Date: Wed, 8 Apr 2026 19:29:50 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E8=B7=B3=E8=BD=AC=E5=88=B0=E9=85=8D=E6=96=B9=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 handleLogout 里的 window.location.reload() 改为 router.push('/'), 确保在任何需要登录的页面退出后都能回到配方查询页面。 Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/UserMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/UserMenu.vue b/frontend/src/components/UserMenu.vue index 16207e1..4dba78f 100644 --- a/frontend/src/components/UserMenu.vue +++ b/frontend/src/components/UserMenu.vue @@ -136,7 +136,7 @@ function handleLogout() { auth.logout() ui.showToast('已退出登录') emit('close') - window.location.reload() + router.push('/') } onMounted(loadNotifications)