don't update transaction time when user don't modify it

This commit is contained in:
MaysWind
2021-01-12 00:02:28 +08:00
parent 9212ed0057
commit 8cb02d7ccf
+2
View File
@@ -482,8 +482,10 @@ export default {
this.transaction.time = newValue; this.transaction.time = newValue;
} }
if (this.$utilities.formatUnixTime(this.transaction.unixTime, 'YYYY-MM-DDTHH:mm') !== newValue) {
this.transaction.unixTime = this.$utilities.getUnixTime(newValue); this.transaction.unixTime = this.$utilities.getUnixTime(newValue);
} }
}
}, },
created() { created() {
const self = this; const self = this;