set time to current time when user clear time

This commit is contained in:
MaysWind
2020-12-20 22:32:46 +08:00
parent 849143c48e
commit b660b3c5d6
+5
View File
@@ -391,6 +391,11 @@ export default {
}
},
'transaction.time': function (newValue) {
if (!newValue) {
newValue = this.$utilities.formatDate(new Date(), 'YYYY-MM-DDTHH:mm');
this.transaction.time = newValue;
}
this.transaction.unixTime = this.$utilities.getUnixTime(newValue);
}
},