code refactor

This commit is contained in:
MaysWind
2025-06-09 00:29:29 +08:00
parent ee47ee91c3
commit 2c730b3e25
16 changed files with 210 additions and 133 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ interface TransactionStatisticResponseWithInfo {
interface TransactionStatisticTrendsResponseItemWithInfo {
readonly year: number;
readonly month: number;
readonly month: number; // 1-based (1 = January, 12 = December)
readonly items: TransactionStatisticResponseItemWithInfo[];
}
@@ -412,7 +412,7 @@ export const useStatisticsStore = defineStore('statistics', () => {
combinedData.items.push({
year: trendItem.year,
month: trendItem.month,
month1base: trendItem.month,
totalAmount: item.totalAmount
});
+1 -1
View File
@@ -96,7 +96,7 @@ export interface TransactionTotalAmount {
export interface TransactionMonthList {
readonly year: number;
readonly month: number;
readonly month: number; // 1-based (1 = January, 12 = December)
readonly yearMonth: string;
opened: boolean;
readonly items: Transaction[];