mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
migrate mobile home page to composition API and typescript
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user