mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +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,
|
loading: true,
|
||||||
todayFirstUnixTime: self.$utilities.getTodayFirstUnixTime(),
|
todayFirstUnixTime: self.$utilities.getTodayFirstUnixTime(),
|
||||||
todayLastUnixTime: self.$utilities.getTodayLastUnixTime(),
|
todayLastUnixTime: self.$utilities.getTodayLastUnixTime(),
|
||||||
showAmountInHomePage: self.$settings.isShowAmountInHomePage()
|
showAmountInHomePage: self.$settings.isShowAmountInHomePage(),
|
||||||
|
isEnableThousandsSeparator: self.$settings.isEnableThousandsSeparator(),
|
||||||
|
currencyDisplayMode: self.$settings.getCurrencyDisplayMode()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -255,6 +257,12 @@ export default {
|
|||||||
onPageAfterIn() {
|
onPageAfterIn() {
|
||||||
this.showAmountInHomePage = this.$settings.isShowAmountInHomePage();
|
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;
|
let dateChanged = false;
|
||||||
|
|
||||||
if (this.todayFirstUnixTime !== this.$utilities.getTodayFirstUnixTime()) {
|
if (this.todayFirstUnixTime !== this.$utilities.getTodayFirstUnixTime()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user