mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
code refactor
This commit is contained in:
@@ -9,6 +9,7 @@ import { useOverviewStore } from '@/stores/overview.ts';
|
|||||||
|
|
||||||
import { Account } from '@/models/account.ts';
|
import { Account } from '@/models/account.ts';
|
||||||
import type {
|
import type {
|
||||||
|
TransactionOverviewResponse,
|
||||||
TransactionOverviewDisplayTime,
|
TransactionOverviewDisplayTime,
|
||||||
TransactionOverviewResponseItem
|
TransactionOverviewResponseItem
|
||||||
} from '@/models/transaction.ts';
|
} from '@/models/transaction.ts';
|
||||||
@@ -70,7 +71,7 @@ export function useHomePageBase() {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
const transactionOverview = computed(() => overviewStore.transactionOverview);
|
const transactionOverview = computed<TransactionOverviewResponse>(() => overviewStore.transactionOverview);
|
||||||
|
|
||||||
function getDisplayAmount(amount: number, incomplete: boolean): string {
|
function getDisplayAmount(amount: number, incomplete: boolean): string {
|
||||||
if (!showAmountInHomePage.value) {
|
if (!showAmountInHomePage.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user