THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

docs: add tips

pull/2990/merge
花裤衩 5 months ago
parent
commit
e692876c28
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/permission.js

+ 1
- 1
src/permission.js View File

@ -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…
Cancel
Save