fix: rules validator tips (#2000)

This commit is contained in:
Kuizuo 2022-06-26 12:46:43 +08:00 committed by GitHub
parent ba97f80d33
commit 1455eb48db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ export const formSchema: FormSchema[] = [
required: true,
validator: (_, value) => {
if (!value) {
return Promise.reject('不能为空');
return Promise.reject('密码不能为空');
}
if (value !== values.passwordNew) {
return Promise.reject('两次输入的密码不一致!');