mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 07:27:33 +08:00
don't update transaction time when user don't modify it
This commit is contained in:
@@ -482,7 +482,9 @@ export default {
|
||||
this.transaction.time = newValue;
|
||||
}
|
||||
|
||||
this.transaction.unixTime = this.$utilities.getUnixTime(newValue);
|
||||
if (this.$utilities.formatUnixTime(this.transaction.unixTime, 'YYYY-MM-DDTHH:mm') !== newValue) {
|
||||
this.transaction.unixTime = this.$utilities.getUnixTime(newValue);
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user