代码生成时,前端 vue 增加组件名

This commit is contained in:
YunaiV 2023-04-09 21:32:26 +08:00
parent caeb23a3dc
commit 0e3904b613
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -178,7 +178,7 @@
<${simpleClassName}Form ref="formRef" @success="getList" />
</template>
<script setup lang="ts" name="${simpleClassName}">
<script setup lang="ts" name="${table.className}">
#if ($dictMethods.size() > 0)
import { DICT_TYPE#foreach ($dictMethod in $dictMethods), ${dictMethod}#end } from '@/utils/dict'
#end