Compare commits

...

2 Commits

Author SHA1 Message Date
7fc57ff5e7 移动端
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m30s
2026-02-06 04:55:31 +02:00
a5ee1d3183 移动端 2026-02-06 04:31:53 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -4,7 +4,7 @@ const baseUrl = import.meta.env.VITE_APP_BASE_URL
const request = new Request({
baseURL: baseUrl,
timeout: 6000,
timeout: 60 * 1000,
headers: {},
extraConfig: {
/** 这里是核心配置一般不需要再去修改request/core.ts */