mirror of https://gitee.com/topiam/eiam
⚡ 优化
parent
b1be091532
commit
84c542807c
|
@ -142,7 +142,7 @@ export default (props: {
|
||||||
message: <FormattedMessage id={'page.account.common.form.phone.rule.0'} />,
|
message: <FormattedMessage id={'page.account.common.form.phone.rule.0'} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
validator: async (rule, value) => {
|
validator: async (_rule, value) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ export default (props: { onGetCaptcha?: () => void; onRef?: any }) => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
validateTrigger: ['onBlur'],
|
validateTrigger: ['onBlur'],
|
||||||
validator: async (rule, value) => {
|
validator: async (_rule, value) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ const Code = (props: ProFormProps) => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
validateTrigger: ['onBlur'],
|
validateTrigger: ['onBlur'],
|
||||||
validator: async (rule, value) => {
|
validator: async (_rule, value) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue