mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
fix issue4161 navbar show name error
This commit is contained in:
parent
0caa975ee2
commit
84a25bef49
@ -56,7 +56,7 @@ router.beforeEach(async(to, from, next) => {
|
||||
}
|
||||
} else {
|
||||
/* has no token*/
|
||||
|
||||
store.commit('user/SET_ROLES', [])
|
||||
if (whiteList.indexOf(to.path) !== -1) {
|
||||
// in the free login whitelist, go directly
|
||||
next()
|
||||
|
Loading…
x
Reference in New Issue
Block a user