From 0e3904b613816c2811d938bc4ef8237aa9b750fd Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 9 Apr 2023 21:32:26 +0800 Subject: [PATCH] 代码生成时,前端 vue 增加组件名 --- yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/sql.vm | 4 ++-- yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/sql.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/sql.vm index 0edbdc1..902ca74 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/sql.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/sql/sql.vm @@ -1,11 +1,11 @@ -- 菜单 SQL INSERT INTO system_menu( name, permission, type, sort, parent_id, - path, icon, component, status + path, icon, component, status, component_name ) VALUES ( '${table.classComment}管理', '', 2, 0, ${table.parentMenuId}, - '${simpleClassName_strikeCase}', '', '${table.moduleName}/${classNameVar}/index', 0 + '${simpleClassName_strikeCase}', '', '${table.moduleName}/${classNameVar}/index', 0, '${table.className}' ); -- 按钮父菜单ID diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm index 3946333..9cce26f 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm @@ -178,7 +178,7 @@ <${simpleClassName}Form ref="formRef" @success="getList" /> -