mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 11:19:24 +08:00
字段修改+权限存入
This commit is contained in:
@@ -149,15 +149,15 @@ export default {
|
||||
})
|
||||
},
|
||||
initRoute() {
|
||||
console.log(localStorage.getItem('user'), "localStorage.getItem('user')")
|
||||
console.log(localStorage.getItem('permission'), "localStorage.getItem('permission')")
|
||||
// 执行过滤
|
||||
const filteredRoutes = this.filterRoutes(
|
||||
this.menuList,
|
||||
JSON.parse(localStorage.getItem('user'))
|
||||
)
|
||||
// const filteredRoutes = this.filterRoutes(
|
||||
// this.menuList,
|
||||
// JSON.parse(localStorage.getItem('permission'))
|
||||
// )
|
||||
console.log( this.$route.matched, 'filteredRoutes')
|
||||
this.subMenu = this.$route.matched[1].children || []
|
||||
// this.menuList= JSON.parse(localStorage.getItem('user'))
|
||||
// this.menuList= JSON.parse(localStorage.getItem('permission'))
|
||||
// this.subMenu =filteredRoutes[0].children||[]
|
||||
|
||||
this.currentKey = '/' + this.$route.fullPath.split('/')[1]
|
||||
|
||||
Reference in New Issue
Block a user