mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-05 03:04:59 +08:00
docs: add tips
This commit is contained in:
parent
6dacb783b2
commit
e692876c28
@ -24,7 +24,7 @@ router.beforeEach(async(to, from, next) => {
|
||||
if (to.path === '/login') {
|
||||
// if is logged in, redirect to the home page
|
||||
next({ path: '/' })
|
||||
NProgress.done()
|
||||
NProgress.done() // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939
|
||||
} else {
|
||||
// determine whether the user has obtained his permission roles through getInfo
|
||||
const hasRoles = store.getters.roles && store.getters.roles.length > 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user