@@ -534,7 +534,7 @@ export default {
addToServe() {
//先进行验证
this.$refs.form.validate(valid => {
- if (this.form.islong == 1 && this.form.validity == null) {
+ if (this.form.islong == 1 && (this.form.validity == null || this.form.validity == '')) {
this.form.validity = '1970-01-01 00:00:00';
}
if (valid) {