From cc65d05158a3513b99e52f1a7fae311c796a10ac Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Fri, 29 May 2020 20:59:17 +0800 Subject: [PATCH] =?UTF-8?q?tag=E6=B7=BB=E5=8A=A0form=20=E5=89=8D=E7=AB=AFi?= =?UTF-8?q?con=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/resource/template/te/model.go.tpl | 2 +- web/src/view/superAdmin/menu/icon.vue | 2 -- web/src/view/superAdmin/menu/menu.vue | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/server/resource/template/te/model.go.tpl b/server/resource/template/te/model.go.tpl index 64f371b2..16deb8a2 100644 --- a/server/resource/template/te/model.go.tpl +++ b/server/resource/template/te/model.go.tpl @@ -7,5 +7,5 @@ import ( type {{.StructName}} struct { gorm.Model {{range .Fields}} - {{.FieldName}} {{.FieldType}} `json:"{{.FieldJson}}"{{if .ColumnName}} gorm:"column:{{.ColumnName}}"{{end}}`{{ end }} + {{.FieldName}} {{.FieldType}} `json:"{{.FieldJson}}" form:"{{.FieldJson}}" {{if .ColumnName}} gorm:"column:{{.ColumnName}}"{{end}}`{{ end }} } \ No newline at end of file diff --git a/web/src/view/superAdmin/menu/icon.vue b/web/src/view/superAdmin/menu/icon.vue index 8cd2261a..e42af26b 100644 --- a/web/src/view/superAdmin/menu/icon.vue +++ b/web/src/view/superAdmin/menu/icon.vue @@ -2,8 +2,6 @@