mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
修复:更改角色后菜单不能正确显示的问题;#179
fix: the menu does not display correctly after changing roles;
This commit is contained in:
parent
32ff4b656a
commit
8e69e32dfe
@ -25,7 +25,7 @@ export default {
|
||||
menuData(state, getters, rootState) {
|
||||
if (state.filterMenu) {
|
||||
const {permissions, roles} = rootState.account
|
||||
state.menuData = filterMenu(state.menuData, permissions, roles)
|
||||
return filterMenu(state.menuData, permissions, roles)
|
||||
}
|
||||
return state.menuData
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user