Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe72cae

Browse files
committed
docs: add tips
1 parent d17cfd0 commit fe72cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/permission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ router.beforeEach(async(to, from, next) => {
2424
if (to.path === '/login') {
2525
// if is logged in, redirect to the home page
2626
next({ path: '/' })
27-
NProgress.done()
27+
NProgress.done() // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939
2828
} else {
2929
// determine whether the user has obtained his permission roles through getInfo
3030
const hasRoles = store.getters.roles && store.getters.roles.length > 0

0 commit comments

Comments
 (0)