Skip to content

Commit

Permalink
docs: add tips
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed May 5, 2020
1 parent 6dacb78 commit e692876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e692876

Please sign in to comment.