修复:更改角色后菜单不能正确显示的问题;#179

fix: the menu does not display correctly after changing roles;
master
chenghongxing 4 years ago
parent 2fc5b9d594
commit 9ddd117d5e
  1. 2
      src/store/modules/setting.js

@ -25,7 +25,7 @@ export default {
menuData(state, getters, rootState) { menuData(state, getters, rootState) {
if (state.filterMenu) { if (state.filterMenu) {
const {permissions, roles} = rootState.account const {permissions, roles} = rootState.account
state.menuData = filterMenu(state.menuData, permissions, roles) return filterMenu(state.menuData, permissions, roles)
} }
return state.menuData return state.menuData
}, },

Loading…
Cancel
Save