Skip to content

Commit

Permalink
♻️ 退出登录时候关闭所有标签页
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Apr 6, 2024
1 parent 884e271 commit f86d8ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layout/navBars/breadcrumb/user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ const onHandleCommandClick = (path: string) => {
},
})
.then(async () => {
// 关闭全部的标签页
mittBus.emit('onCurrentContextmenuClick', Object.assign({}, { contextMenuClickId: 3, ...router }));
// 调用注销token接口
await logout();
// 清除缓存/token等
Session.clear();
Expand Down

0 comments on commit f86d8ed

Please sign in to comment.