This commit is contained in:
jingna 2025-06-24 17:35:51 +08:00
parent d230c2dc98
commit bebeb2c816

View File

@ -164,6 +164,9 @@ function permissionClick() {
}
localStorage.setItem('currentInfo', JSON.stringify(currentInfo))
}
function routerlink(){
router.push({ path: '/UserLogin' })
}
function logout() {
ElMessageBox.confirm(
'确定退出登录?',
@ -179,12 +182,7 @@ function logout() {
localStorage.removeItem('userInfo')
localStorage.removeItem('permissions')
localStorage.removeItem('currentInfo')
const router = useRouter()
router.push({ path: '/UserLogin' })
.catch((err:any) => {
console.error("路由跳转失败:", err)
// ElMessage.error("")
})
routerlink()
})
.catch(() => { })
}