This commit is contained in:
xiaojunnuo
2024-12-24 01:12:12 +08:00
parent cb27d4b490
commit ffa4de6911
14 changed files with 107 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
import Validator from "async-validator";
// 自定义验证器函数
export function isDomain(rule: any, value: any) {
if (value == null) {
if (value == null || value == "") {
return true;
}
let domains: string[] = value;