1
0
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:
kun.xu 2023-05-11 16:44:49 +08:00
parent 0caa975ee2
commit 84a25bef49

View File

@ -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()