update TopNav切换

This commit is contained in:
不做码农
2022-05-21 13:29:58 +08:00
parent 945f764249
commit 8e2cebc402
2 changed files with 12 additions and 10 deletions
+2
View File
@@ -124,6 +124,8 @@ const topNav = computed({
if (!val) {
store.dispatch('app/toggleSideBarHide', false)
store.commit('SET_SIDEBAR_ROUTERS', store.state.permission.defaultRoutes)
// TODO 临时解决切换topnav路由跳转问题
setTimeout('window.location.reload()', 100)
}
},
})