增加自动化代码图片功能

This commit is contained in:
piexlMax
2023-06-08 23:17:22 +08:00
parent d2d7b22a8f
commit 83a06fcd2b
6 changed files with 25 additions and 13 deletions

View File

@@ -169,7 +169,7 @@
</el-select>
{{- end }}
{{- if eq .FieldType "picture" }}
<SelectImage v-model="formData.{{ .FieldJson }}" />
<SelectImage v-model="getUrl(formData.{{ .FieldJson }})" />
{{- end }}
</el-form-item>
{{- end }}
@@ -200,8 +200,9 @@ import {
get{{.StructName}}List
} from '@/api/{{.PackageName}}'
{{- if eq .FieldType "picture" }}
{{- if .HasPic }}
// 图片选择组件
import { getUrl } from '@/utils/image'
import SelectImage from '@/components/selectImage/selectImage.vue'
{{- end }}