diff --git a/server/resource/autocode_template/web/form.vue.tpl b/server/resource/autocode_template/web/form.vue.tpl index b280a231e..ed228741f 100644 --- a/server/resource/autocode_template/web/form.vue.tpl +++ b/server/resource/autocode_template/web/form.vue.tpl @@ -99,6 +99,9 @@ const formData = ref({ {{- if eq .FieldType "string" }} {{.FieldJson}}: '', {{- end }} + {{- if eq .FieldType "richtext" }} + {{.FieldJson}}: '', + {{- end }} {{- if eq .FieldType "int" }} {{.FieldJson}}: {{- if .DictType }} undefined{{ else }} 0{{- end }}, {{- end }} diff --git a/server/resource/autocode_template/web/table.vue.tpl b/server/resource/autocode_template/web/table.vue.tpl index 0e0912a9b..dd3db2220 100644 --- a/server/resource/autocode_template/web/table.vue.tpl +++ b/server/resource/autocode_template/web/table.vue.tpl @@ -353,6 +353,9 @@ const formData = ref({ {{- if eq .FieldType "string" }} {{.FieldJson}}: '', {{- end }} + {{- if eq .FieldType "richtext" }} + {{.FieldJson}}: '', + {{- end }} {{- if eq .FieldType "int" }} {{.FieldJson}}: {{- if .DictType }} undefined{{ else }} 0{{- end }}, {{- end }}