1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-30 11:19:52 +08:00
2020-06-13 23:35:09 +08:00

10 lines
156 B
JavaScript

exports.notEmpty = name => {
return v => {
if (!v || v.trim() === '') {
return `${name} is required`
} else {
return true
}
}
}