mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 12:58:55 +08:00
♻️ 退出登录时候关闭所有标签页
This commit is contained in:
parent
884e271104
commit
f86d8ed3ba
@ -166,6 +166,9 @@ const onHandleCommandClick = (path: string) => {
|
||||
},
|
||||
})
|
||||
.then(async () => {
|
||||
// 关闭全部的标签页
|
||||
mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 3, ...router }));
|
||||
// 调用注销token接口
|
||||
await logout();
|
||||
// 清除缓存/token等
|
||||
Session.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user