fix: 参数都是可选的,不填值不校验
This commit is contained in:
@@ -895,6 +895,11 @@ function ruleVerification(row: Record<string, any>): (string | boolean)[] {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 可选的同时没有值不检查
|
||||||
|
if (row.optional === 'true' && !value) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'int':
|
case 'int':
|
||||||
if (filter && filter.indexOf('~') !== -1) {
|
if (filter && filter.indexOf('~') !== -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user