1
0
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:
MeloXuk 2024-11-01 11:35:02 +08:00 committed by GitHub
commit a7079c00e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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