diff --git a/src/store/modules/setting.js b/src/store/modules/setting.js index 9c49bc4..5eb1558 100644 --- a/src/store/modules/setting.js +++ b/src/store/modules/setting.js @@ -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 },