优化登录身份缓存机制

This commit is contained in:
eoao
2025-07-04 20:02:00 +08:00
parent 7a0711071d
commit e2aeaf3783
4 changed files with 6 additions and 5 deletions

View File

@@ -131,7 +131,7 @@ function clickLogout() {
logoutLoading.value = true
logout().then(() => {
localStorage.removeItem("token")
router.push('/login')
router.replace('/login')
}).finally(() => {
logoutLoading.value = false
})