mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-06 07:21:24 +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() {
|
||||
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 menus = user.menus
|
||||
|
||||
Reference in New Issue
Block a user