bug: 退出登录,暂未实现

This commit is contained in:
my_ong 2024-12-14 16:48:04 +08:00
parent 9e27d62e0e
commit c0b5e0bfd5
2 changed files with 4 additions and 3 deletions

View File

@ -81,11 +81,11 @@
} }
const logout = () => { const logout = () => {
Modal.confirm({ Modal.confirm({
title: t.t('layout.user.modal.logout.title'), title: '退出登录',
icon: createVNode(ExclamationCircleOutlined), icon: createVNode(ExclamationCircleOutlined),
content: createVNode('div', { style: 'color:red;' }, t.t('layout.user.modal.logout.content')), content: createVNode('div', { style: 'color:red;' }, '确定退出系统吗?'),
onOk() { onOk() {
console.log(1) user.logout()
}, },
}) })
} }

View File

@ -41,6 +41,7 @@ export const useUserStore = defineStore('user', {
this.sex = 'FEMALE' this.sex = 'FEMALE'
this.token = '' this.token = ''
this.refreshToken = '' this.refreshToken = ''
router.push({ path: '/login/user' }) // 退出登录后跳转到登录页面,未实现,要清理缓存?
}, },
}, },
persist: { persist: {