diff --git a/src/main/resources/views/layouts/platform.html b/src/main/resources/views/layouts/platform.html index c85c3b4..57a9aae 100644 --- a/src/main/resources/views/layouts/platform.html +++ b/src/main/resources/views/layouts/platform.html @@ -12,7 +12,7 @@ - + @@ -100,7 +100,7 @@ - + @@ -271,7 +271,7 @@ parentMenus.push(matchMenu) //获取到该菜单所属的模块 - const moduleId = state.moduleMenus.find(v=>v.containsMenu.includes(parentMenus[0].id))?.id + const moduleId = state.moduleMenus.find(v => v.containsMenu.includes(parentMenus[0].id))?.id //判断下是否跨模块跳转 if (moduleId !== state.activeMenuModuleId) { @@ -511,7 +511,7 @@ return this.$store.state.activeMenuModuleId || null }, selectEntranceModule() { - if (this.selectEntranceModuleId && this.moduleMenus) { + if (this.selectEntranceModuleId && this.moduleMenus && this.moduleMenus.length > 0) { return this.moduleMenus.find(v => v.id === this.selectEntranceModuleId) } return {} @@ -573,8 +573,8 @@ return this.$store.state.activeMenuModuleId || null }, selectEntranceModule() { - if (this.selectEntranceModuleId && this.moduleMenus) { - return this.moduleMenus.find(v => v.id === this.selectEntranceModuleId) + if (this.selectEntranceModuleId && this.entranceModules) { + return this.entranceModules.find(v => v.id === this.selectEntranceModuleId) } return {} }