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
+3 -1
View File
@@ -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() {