Merge branch '1.3.x' of https://github.com/go-admin-team/go-admin into 1.3.x
This commit is contained in:
commit
fb42953fbe
1 file changed
+1
-2
@@ -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'}
|
||||||
|
|||||||
Reference in new issue
Block a user