feat: 完善自动化代码填充方法逻辑,增加成功率

This commit is contained in:
pixelmaxQM
2024-11-03 13:15:52 +08:00
parent e036395d18
commit 12124eb1aa
3 changed files with 16 additions and 0 deletions

View File

@@ -76,6 +76,12 @@
const {{ $element }}Options = ref([])
{{- end }}
// init方法中增加如下调用
{{- range $index, $element := .DictTypes }}
{{ $element }}Options.value = await getDictFunc('{{$element}}')
{{- end }}
// 基础formData结构增加如下字段
{{- range .Fields}}
{{- if .Form}}

View File

@@ -76,6 +76,12 @@
const {{ $element }}Options = ref([])
{{- end }}
// init方法中增加如下调用
{{- range $index, $element := .DictTypes }}
{{ $element }}Options.value = await getDictFunc('{{$element}}')
{{- end }}
// 基础formData结构增加如下字段
{{- range .Fields}}
{{- if .Form}}