Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e598e9

Browse files
authored
fix: fixed change roles bug (PanJiaChen#2072)
1 parent be3dfac commit 1e598e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/store/modules/user.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ const actions = {
115115
// dynamically add accessible routes
116116
router.addRoutes(accessRoutes)
117117

118+
// reset visited views and cached views
119+
dispatch('tagsView/delAllViews', null, { root: true })
120+
118121
resolve()
119122
})
120123
}

0 commit comments

Comments
 (0)