优化

pull/82/head^2
awenes 2024-04-04 20:18:48 +08:00
parent b1be091532
commit 84c542807c
3 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ export default (props: {
message: <FormattedMessage id={'page.account.common.form.phone.rule.0'} />,
},
{
validator: async (rule, value) => {
validator: async (_rule, value) => {
if (!value) {
return Promise.resolve();
}

View File

@ -95,7 +95,7 @@ export default (props: { onGetCaptcha?: () => void; onRef?: any }) => {
},
{
validateTrigger: ['onBlur'],
validator: async (rule, value) => {
validator: async (_rule, value) => {
if (!value) {
return Promise.resolve();
}

View File

@ -75,7 +75,7 @@ const Code = (props: ProFormProps) => {
},
{
validateTrigger: ['onBlur'],
validator: async (rule, value) => {
validator: async (_rule, value) => {
if (!value) {
return Promise.resolve();
}