mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-05 11:18:42 +08:00
parent
8c89992c6c
commit
215ff05bd1
@ -1,9 +1,2 @@
|
|||||||
exports.notEmpty = name => {
|
exports.notEmpty = name => v =>
|
||||||
return v => {
|
!v || v.trim() === '' ? `${name} is required` : true
|
||||||
if (!v || v.trim === '') {
|
|
||||||
return `${name} is required`
|
|
||||||
} else {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user