From 5eb7a32d9ed25e73e55fd5c14bf7f19bb59a8955 Mon Sep 17 00:00:00 2001 From: changxiaodong Date: Wed, 6 Aug 2025 16:47:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E9=A2=9D=E9=AA=8C=E8=AF=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/contant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/contant.ts b/utils/contant.ts index 6bba6e1..e78e197 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) { -- Gitee