migrate mobile home page to composition API and typescript

This commit is contained in:
MaysWind
2025-02-04 13:05:32 +08:00
parent cc920cff9a
commit 3c363788d8
3 changed files with 106 additions and 162 deletions
+2 -2
View File
@@ -277,7 +277,7 @@ export const useOverviewStore = defineStore('overview', () => {
transactionOverviewStateInvalid.value = true;
}
function loadTransactionOverview({ force, loadLast11Months }: { force: boolean, loadLast11Months: boolean }): Promise<TransactionAmountsResponse> {
function loadTransactionOverview({ force, loadLast11Months }: { force: boolean, loadLast11Months?: boolean }): Promise<TransactionAmountsResponse> {
let dateChanged = false;
let rangeChanged = false;
@@ -337,7 +337,7 @@ export const useOverviewStore = defineStore('overview', () => {
}
transactionOverviewData.value = data.result;
transactionOverviewOptions.value.loadLast11Months = loadLast11Months;
transactionOverviewOptions.value.loadLast11Months = !!loadLast11Months;
resolve(data.result);
}).catch(error => {