Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c42d41c

Browse files
author
piexlMax(奇淼
committed
fix(deps): 修复在字段类型为file生成搜索条件无法运行的bug
1 parent d39e396 commit c42d41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎server/utils/autocode/template_funcs.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ func GenerateSearchField(field systemReq.AutoCodeField) string {
700700
// 生成普通搜索字段
701701
if field.FieldType == "enum" || field.FieldType == "picture" ||
702702
field.FieldType == "pictures" || field.FieldType == "video" ||
703-
field.FieldType == "json" || field.FieldType == "richtext" || field.FieldType == "array" {
703+
field.FieldType == "json" || field.FieldType == "richtext" || field.FieldType == "array" ||field.FieldType=="file"{
704704
result = fmt.Sprintf("%s string `json:\"%s\" form:\"%s\"` ",
705705
field.FieldName, field.FieldJson, field.FieldJson)
706706
} else {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /