From 9ddd117d5e9e2210c3df4b9e5da63331565224ef Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Fri, 15 Jan 2021 09:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=90=8E=E8=8F=9C=E5=8D=95=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=9B#179=20fix:=20the=20menu=20does=20not=20display=20corr?= =?UTF-8?q?ectly=20after=20changing=20roles;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/setting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 },