From ba89880736f3e0f4581b1b706403815fd2f85312 Mon Sep 17 00:00:00 2001 From: chenghongxing <1126263215@qq.com> Date: Wed, 5 May 2021 22:07:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=B7=B7=E5=90=88?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8B=E8=8F=9C=E5=8D=95=E6=9D=83=E9=99=90?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/setting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/setting.js b/src/store/modules/setting.js index 6fbabf2..58471ce 100644 --- a/src/store/modules/setting.js +++ b/src/store/modules/setting.js @@ -30,8 +30,8 @@ export default { } return state.menuData }, - firstMenu(state) { - const {menuData} = state + firstMenu(state, getters) { + const {menuData} = getters if (menuData.length > 0 && !menuData[0].fullPath) { formatFullPath(menuData) }