fix(web): preserve next on 401, validate redirect target, catch navigation rejections

This commit is contained in:
2026-04-29 10:16:07 +08:00
parent 9d93bcd24b
commit 9e3b745da3
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ async function onSelect(key: string) {
await authApi.logout()
} finally {
auth.clearSession()
router.replace({ name: 'login' })
router.replace({ name: 'login' }).catch(() => {})
}
}
}