fix: exception caused by mix layout mode; 🐛 #121

修复:混合布局模式下导致的异常;
master
iczer 4 years ago
parent c61570d2ff
commit 15d18db7e0
  1. 2
      src/store/modules/setting.js
  2. 1
      src/utils/themeUtil.js

@ -28,7 +28,7 @@ export default {
}, },
firstMenu(state) { firstMenu(state) {
const {menuData} = state const {menuData} = state
if (!menuData[0].fullPath) { if (menuData.length > 0 && !menuData[0].fullPath) {
formatFullPath(menuData) formatFullPath(menuData)
} }
return menuData.map(item => { return menuData.map(item => {

@ -88,7 +88,6 @@ function getLocalSetting(loadTheme) {
console.error(e) console.error(e)
} }
if (loadTheme) { if (loadTheme) {
console.log(localSetting)
loadLocalTheme(localSetting) loadLocalTheme(localSetting)
} }
return localSetting return localSetting

Loading…
Cancel
Save