code refactor

This commit is contained in:
MaysWind
2023-07-01 02:19:04 +08:00
parent 96c233d5c5
commit ee399d8a08
2 changed files with 78 additions and 56 deletions
@@ -474,7 +474,7 @@ export default {
self.transactionCategoriesStore.loadAllCategories({ force: false })
]).then(() => {
return self.statisticsStore.loadTransactionStatistics({
defaultCurrency: self.defaultCurrency
force: false
});
}).then(() => {
self.loading = false;
@@ -507,7 +507,7 @@ export default {
self.query.chartDataType === self.allChartDataTypes.IncomeByPrimaryCategory.type ||
self.query.chartDataType === self.allChartDataTypes.IncomeBySecondaryCategory.type) {
dispatchPromise = self.statisticsStore.loadTransactionStatistics({
defaultCurrency: self.defaultCurrency
force: force
});
} else if (self.query.chartDataType === self.allChartDataTypes.AccountTotalAssets.type ||
self.query.chartDataType === self.allChartDataTypes.AccountTotalLiabilities.type) {