@@ -89,7 +89,7 @@ export function validateExist(rule: any, value: any, callback: any, isEdit: bool
getObj({ [rule.field]: value }).then((response) => {
const result = response.data;
- if (result !== null) {
+ if (result !== null && result.length > 0) {
callback(new Error('数据已经存在'));
} else {
callback();