This commit is contained in:
2019-03-11 23:20:23 +00:00
parent 32dce08fcf
commit 8e74d8e861

View File

@@ -25,7 +25,7 @@ export default {
return err;
},
MaxLength(ltkey, value, max) {
if (value === undefined || value === null) {
if (_.isEmpty(value)) {
return false;
}
@@ -45,11 +45,10 @@ export default {
return this.MaxLength(ltkey, value, 255);
},
After(startDate, endDate) {
if (startDate === undefined || startDate === null) {
if (_.isEmpty(startDate)) {
return false;
}
if (endDate === undefined || endDate === null) {
if (_.isEmpty(endDate)) {
return false;
}