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