From a5ee1d3183634fcaecd02cda05ecff042ed3cc69 Mon Sep 17 00:00:00 2001 From: speakeloudest Date: Fri, 6 Feb 2026 04:31:53 +0200 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/UserInfo/components/WalletDialog.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue b/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue index 1dd1202..35e5dde 100644 --- a/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue +++ b/src/pages/UserCenter/components/UserInfo/components/WalletDialog.vue @@ -174,8 +174,8 @@ const formSchema = toTypedSchema( .object({ type: z.enum(ACCOUNT_TYPE), account: z.string().optional(), - money: z - .coerce.string() + money: z.coerce + .string() .min(1, '金额不能为空') .regex(/^\d+(\.\d{1,2})?$/, '格式错误,最多支持两位小数'), avatar: z.string().optional(), @@ -206,7 +206,7 @@ const onSubmit = handleSubmit(async (val) => { const amount = parseFloat(val.money) // 1. 基础校验 - if (amount > props.commission / 100) return toast.error('超过最大佣金') + if (amount > props.commission / 100) return toast.error('佣金不足') if (amount < 200) return toast.error('金额不能小于200') try {