diff --git a/utils/contant.ts b/utils/contant.ts index 6bba6e1031a1040f3aaca6f13e56f5e988b731ac..e78e19773f572496dbabd15c9cb93342331b1abc 100644 --- a/utils/contant.ts +++ b/utils/contant.ts @@ -26,7 +26,7 @@ export const eventRules = { errorMessage: '金额不能为空' }, { validateFunction: (_ : any, value : number, d : any, callback : (val : string) => void) => { - if (!value) { + if (!value && !!Number(value)) { return true; } if (value < 0.01) {