mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-26 12:48:48 +08:00
fix: rules validator tips (#2000)
This commit is contained in:
parent
ba97f80d33
commit
1455eb48db
@ -32,7 +32,7 @@ export const formSchema: FormSchema[] = [
|
|||||||
required: true,
|
required: true,
|
||||||
validator: (_, value) => {
|
validator: (_, value) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return Promise.reject('不能为空');
|
return Promise.reject('密码不能为空');
|
||||||
}
|
}
|
||||||
if (value !== values.passwordNew) {
|
if (value !== values.passwordNew) {
|
||||||
return Promise.reject('两次输入的密码不一致!');
|
return Promise.reject('两次输入的密码不一致!');
|
||||||
|
Loading…
Reference in New Issue
Block a user