mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 15:31:23 +08:00
Fixed the bug that the permission change menu could not be loaded after switching users
This commit is contained in:
@@ -220,7 +220,9 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.username = getUsername()
|
this.username = getUsername()
|
||||||
const allRoutes = _.filter(_.get(this.$router, 'options.routes[0].children'), 'meta.title')
|
const allRoutes = _.cloneDeep(
|
||||||
|
_.filter(_.get(this.$router, 'options.routes[0].children'), 'meta.title')
|
||||||
|
)
|
||||||
|
|
||||||
const user = getUser()
|
const user = getUser()
|
||||||
const menus = user.menus
|
const menus = user.menus
|
||||||
|
|||||||
Reference in New Issue
Block a user