fix:修改退出路径

This commit is contained in:
lz-ui 2025-09-15 16:56:57 +08:00
parent 005a5d9181
commit 8a17ab6e51
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ function logout() {
type: 'warning'
}).then(() => {
userStore.logOut().then(() => {
location.href = '/index'
location.href = '/'
})
}).catch(() => { })
}

View File

@ -87,7 +87,7 @@ service.interceptors.response.use(res => {
ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
isRelogin.show = false
useUserStore().logOut().then(() => {
location.href = '/index'
location.href = '/'
})
}).catch(() => {
isRelogin.show = false