mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-01 06:39:01 +08:00
fix: 捕获退出登录异常,不阻止退出登录
This commit is contained in:
parent
925c0afba7
commit
4448ccf111
@ -72,7 +72,11 @@ function handleSelect(key) {
|
||||
type: 'info',
|
||||
content: '确认退出?',
|
||||
async confirm() {
|
||||
await api.logout()
|
||||
try {
|
||||
await api.logout()
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
authStore.logout()
|
||||
$message.success('已退出登录')
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user