diff --git a/code/makecode.go b/code/makecode.go index 0045726..7bbcb9e 100644 --- a/code/makecode.go +++ b/code/makecode.go @@ -515,7 +515,7 @@ func (that *MakeCode) Db2JSON(db *db.HoTimeDB, config Map) { tempC := that.TableConfig.GetMap(tableName).GetSlice("columns") isGet := true for k2, _ := range tempC { - if strings.Contains(tempC.GetMap(k2).GetString("name"), "name") { + if strings.Contains(tempC.GetMap(k2).GetString("name"), "name") || strings.Contains(tempC.GetMap(k2).GetString("name"), "title") { v["value"] = tempC.GetMap(k2).GetString("name") isGet = false break diff --git a/example/zct_manage.exe b/example/zct_manage.exe index 30d1889..217d8b0 100644 Binary files a/example/zct_manage.exe and b/example/zct_manage.exe differ