From 10dc003f209a1c6dbd0f5b741c15e1174c1d1b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?piexlMax=28=E5=A5=87=E6=B7=BC?= Date: Tue, 10 Oct 2023 16:04:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=9C=AA=E5=88=9B=E5=BB=BA=E5=89=8D=E7=AB=AF=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/resource/autocode_template/web/form.vue.tpl | 3 +++ server/resource/autocode_template/web/table.vue.tpl | 3 +++ 2 files changed, 6 insertions(+) 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 }}