mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-30 11:19:52 +08:00
fix[notEmpty]: set trim => trim()
This commit is contained in:
parent
1c943509f9
commit
862fa88e99
@ -1,6 +1,6 @@
|
|||||||
exports.notEmpty = name => {
|
exports.notEmpty = name => {
|
||||||
return v => {
|
return v => {
|
||||||
if (!v || v.trim === '') {
|
if (!v || v.trim() === '') {
|
||||||
return `${name} is required`
|
return `${name} is required`
|
||||||
} else {
|
} else {
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user