We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dacb78 commit e692876Copy full SHA for e692876
src/permission.js
@@ -24,7 +24,7 @@ router.beforeEach(async(to, from, next) => {
24
if (to.path === '/login') {
25
// if is logged in, redirect to the home page
26
next({ path: '/' })
27
- NProgress.done()
+ NProgress.done() // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939
28
} else {
29
// determine whether the user has obtained his permission roles through getInfo
30
const hasRoles = store.getters.roles && store.getters.roles.length > 0
0 commit comments