From d02ba57ffb93b34f54512db23a61db4f9b607a99 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期五, 27 九月 2024 16:02:40 +0800
Subject: [PATCH] 修复代码生成上级菜单显示问题

---
 src/views/tool/gen/genInfoForm.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue
index 2e7ca45..926d268 100644
--- a/src/views/tool/gen/genInfoForm.vue
+++ b/src/views/tool/gen/genInfoForm.vue
@@ -91,11 +91,13 @@
               <el-icon><question-filled /></el-icon>
             </el-tooltip>
           </template>
-          <tree-select
-            v-model:value="info.parentMenuId"
-            :options="menuOptions"
-            :objMap="{ value: 'menuId', label: 'menuName', children: 'children' }"
+          <el-tree-select
+            v-model="info.parentMenuId"
+            :data="menuOptions"
+            :props="{ value: 'menuId', label: 'menuName', children: 'children' }"
+            value-key="menuId"
             placeholder="璇烽�夋嫨绯荤粺鑿滃崟"
+            check-strictly
           />
         </el-form-item>
       </el-col>
@@ -287,6 +289,10 @@
   });
 }
 
+onMounted(() => {
+  getMenuTreeselect();
+})
+
 watch(() => props.info.subTableName, val => {
   setSubTableColumns(val);
 });
@@ -297,5 +303,4 @@
   }
 });
 
-getMenuTreeselect();
 </script>

--
Gitblit v1.9.3