bugfix:必填字段判断错误修复

This commit is contained in:
ninstein authored and GitHub committed 2021-05-31 21:12:04 +08:00
1 parent 2cb81654a6
commit b5bfece9f1
1 file changed
+1 -2
+1 -2
View File
@@ -294,8 +294,7 @@
// 表单校验 // 表单校验
rules: { rules: {
{{- range .Columns -}} {{- range .Columns -}}
{{- $x := .IsQuery -}} {{- if eq .IsRequired "1" -}}
{{- if ($x) -}}
{{.JsonField}}: {{.JsonField}}:
[ [
{required: true, message: '{{.ColumnComment}}不能为空', trigger: 'blur'} {required: true, message: '{{.ColumnComment}}不能为空', trigger: 'blur'}