1
0
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:
2023-05-20 02:14:10 +08:00
parent 4ed7943235
commit 95150112b5

View File

@@ -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