Introduce the new Vue admin project into version control while tightening gitignore patterns to keep env files, logs, build artifacts, and test outputs out of commits. Made-with: Cursor
10 lines
154 B
JavaScript
Executable File
10 lines
154 B
JavaScript
Executable File
exports.notEmpty = name => {
|
|
return v => {
|
|
if (!v || v.trim === '') {
|
|
return `${name} is required`
|
|
} else {
|
|
return true
|
|
}
|
|
}
|
|
}
|