From 15d18db7e0f32bc76927b0aa75497ef236ee70ab Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Sun, 13 Sep 2020 17:37:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20exception=20caused=20by=20mix=20layout?= =?UTF-8?q?=20mode;=20:bug:=20#121=20=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=B7=B7?= =?UTF-8?q?=E5=90=88=E5=B8=83=E5=B1=80=E6=A8=A1=E5=BC=8F=E4=B8=8B=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E5=BC=82=E5=B8=B8=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/setting.js | 2 +- src/utils/themeUtil.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/store/modules/setting.js b/src/store/modules/setting.js index d79c401..c0df29c 100644 --- a/src/store/modules/setting.js +++ b/src/store/modules/setting.js @@ -28,7 +28,7 @@ export default { }, firstMenu(state) { const {menuData} = state - if (!menuData[0].fullPath) { + if (menuData.length > 0 && !menuData[0].fullPath) { formatFullPath(menuData) } return menuData.map(item => { diff --git a/src/utils/themeUtil.js b/src/utils/themeUtil.js index 22d8043..a24de01 100644 --- a/src/utils/themeUtil.js +++ b/src/utils/themeUtil.js @@ -88,7 +88,6 @@ function getLocalSetting(loadTheme) { console.error(e) } if (loadTheme) { - console.log(localSetting) loadLocalTheme(localSetting) } return localSetting