1、bug修复
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-07-14 10:33:05 +08:00
parent 975e45fea6
commit c8777c5b05
4 changed files with 4 additions and 15 deletions

View File

@@ -130,12 +130,9 @@ export const drawerSchema: FormSchemaGetter = () => [
component: 'Input',
fieldName: 'phonenumber',
label: '手机号码',
defaultValue: undefined,
rules: z
.string()
.regex(/^1[3-9]\d{9}$/, '请输入正确的手机号')
.optional()
.or(z.literal('')),
.regex(/^1[3-9]\d{9}$/, { message: '请输入正确的手机号' }),
},
{
component: 'Input',