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