mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 16:16:20 +08:00
fix: rules validator tips (#2000)
This commit is contained in:
@@ -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('两次输入的密码不一致!');
|
||||||
|
Reference in New Issue
Block a user