fix generate

This commit is contained in:
maxbad
2023-05-20 17:02:55 +08:00
parent 5aa7ace31b
commit 8582748eef
2 changed files with 3 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ func (l *gCurd) generateLogicSwitchFields(ctx context.Context, in *CurdPreviewIn
if in.options.Step.HasSwitch {
for _, field := range in.masterFields {
if field.FormMode == "Switch" {
buffer.WriteString("\t\tdao." + in.In.DaoName + ".Columns()." + field.GoName + ",\n")
buffer.WriteString("\t\t\"" + field.TsName + "\",\n")
}
}
}