mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
Merge 6a557cf7b9118e54fd39a06e2531eb19b4485896 into 0caa975ee224074c77540107b1fe076081cdf306
This commit is contained in:
commit
132098cd46
@ -26,7 +26,7 @@ router.beforeEach(async(to, from, next) => {
|
||||
next({ path: '/' })
|
||||
NProgress.done() // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939
|
||||
} else {
|
||||
// determine whether the user has obtained his permission roles through getInfo
|
||||
// determine whether the user has obtained their permission roles through getInfo
|
||||
const hasRoles = store.getters.roles && store.getters.roles.length > 0
|
||||
if (hasRoles) {
|
||||
next()
|
||||
|
@ -164,7 +164,7 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
const routes = this.generateRoutes(this.role.routes)
|
||||
this.$refs.tree.setCheckedNodes(this.generateArr(routes))
|
||||
// set checked state of a node not affects its father and child nodes
|
||||
// set checked state of a node not affects its parent and child nodes
|
||||
this.checkStrictly = false
|
||||
})
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user