mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
fix some settings change in home page does not take effect
This commit is contained in:
@@ -176,7 +176,9 @@ export default {
|
||||
loading: true,
|
||||
todayFirstUnixTime: self.$utilities.getTodayFirstUnixTime(),
|
||||
todayLastUnixTime: self.$utilities.getTodayLastUnixTime(),
|
||||
showAmountInHomePage: self.$settings.isShowAmountInHomePage()
|
||||
showAmountInHomePage: self.$settings.isShowAmountInHomePage(),
|
||||
isEnableThousandsSeparator: self.$settings.isEnableThousandsSeparator(),
|
||||
currencyDisplayMode: self.$settings.getCurrencyDisplayMode()
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -255,6 +257,12 @@ export default {
|
||||
onPageAfterIn() {
|
||||
this.showAmountInHomePage = this.$settings.isShowAmountInHomePage();
|
||||
|
||||
if (this.isEnableThousandsSeparator !== this.$settings.isEnableThousandsSeparator() || this.currencyDisplayMode !== this.$settings.getCurrencyDisplayMode()) {
|
||||
this.isEnableThousandsSeparator = this.$settings.isEnableThousandsSeparator();
|
||||
this.currencyDisplayMode = this.$settings.getCurrencyDisplayMode();
|
||||
this.$forceUpdate();
|
||||
}
|
||||
|
||||
let dateChanged = false;
|
||||
|
||||
if (this.todayFirstUnixTime !== this.$utilities.getTodayFirstUnixTime()) {
|
||||
|
||||
Reference in New Issue
Block a user