调整用户切换角色路由跳转逻辑

This commit is contained in:
piexlmax
2022-08-06 19:47:55 +08:00
parent 7e7c869fc4
commit f32ed3a5c8
2 changed files with 7 additions and 5 deletions
@@ -311,6 +311,10 @@ const initPage = () => {
activeValue.value = window.sessionStorage.getItem('activeValue')
}
setTab(route)
if (window.sessionStorage.getItem('needCloseAll') === 'true') {
closeAll()
window.sessionStorage.removeItem('needCloseAll')
}
}
initPage()