mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
Merge 84a25bef49518054a497f94185b292df75d50202 into 6858a9ad67483025f6a9432a926beb9327037be3
This commit is contained in:
commit
a7079c00e4
@ -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