From ead4eefb63af66c15052ad41c19e0040073ee23e Mon Sep 17 00:00:00 2001
From: JyuHsin <729757837@qq.com>
Date: Fri, 6 Dec 2024 12:06:28 +0800
Subject: [PATCH] commit
---
src/main/resources/views/layouts/platform.html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
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 {}
}