fix: 退出登录后跳转到配方查询页面

将 handleLogout 里的 window.location.reload() 改为 router.push('/'),
确保在任何需要登录的页面退出后都能回到配方查询页面。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-08 19:29:50 +00:00
committed by Hera Zhao
parent 533cd2a0bd
commit c8de1ad229

View File

@@ -136,7 +136,7 @@ function handleLogout() {
auth.logout() auth.logout()
ui.showToast('已退出登录') ui.showToast('已退出登录')
emit('close') emit('close')
window.location.reload() router.push('/')
} }
onMounted(loadNotifications) onMounted(loadNotifications)