mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 15:07:33 +08:00
set time to current time when user clear time
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user