Skip to content

Commit

Permalink
fix: exception caused by mix layout mode; 🐛 #121
Browse files Browse the repository at this point in the history
修复:混合布局模式下导致的异常;
  • Loading branch information
iczer committed Sep 13, 2020
1 parent c61570d commit 15d18db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/store/modules/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
1 change: 0 additions & 1 deletion src/utils/themeUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ function getLocalSetting(loadTheme) {
console.error(e)
}
if (loadTheme) {
console.log(localSetting)
loadLocalTheme(localSetting)
}
return localSetting
Expand Down

0 comments on commit 15d18db

Please sign in to comment.