bug: 退出登录,暂未实现
This commit is contained in:
parent
9e27d62e0e
commit
c0b5e0bfd5
@ -81,11 +81,11 @@
|
||||
}
|
||||
const logout = () => {
|
||||
Modal.confirm({
|
||||
title: t.t('layout.user.modal.logout.title'),
|
||||
title: '退出登录',
|
||||
icon: createVNode(ExclamationCircleOutlined),
|
||||
content: createVNode('div', { style: 'color:red;' }, t.t('layout.user.modal.logout.content')),
|
||||
content: createVNode('div', { style: 'color:red;' }, '确定退出系统吗?'),
|
||||
onOk() {
|
||||
console.log(1)
|
||||
user.logout()
|
||||
},
|
||||
})
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ export const useUserStore = defineStore('user', {
|
||||
this.sex = 'FEMALE'
|
||||
this.token = ''
|
||||
this.refreshToken = ''
|
||||
router.push({ path: '/login/user' }) // 退出登录后跳转到登录页面,未实现,要清理缓存?
|
||||
},
|
||||
},
|
||||
persist: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user