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 @@