refactor(largeScreen): 修改月度数据图表的月份标签

- 用固定的中文月份标签替换从 API 获取的月份数据
- 提高了图表的可读性和一致性
This commit is contained in:
tcy
2025-08-22 17:29:48 +08:00
parent 291a5eca02
commit 11bded87e4

View File

@ -78,7 +78,9 @@ const getTurnoverList = async () => {
// return isNaN(num) ? 0 : Number(num.toFixed(2));
// });
const { data } = await monthCash()
const month = data.map((item: any) => item.month);
// const month = data.map((item: any) => item.month);
const month = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'];
const income = data.map((item: any) => item.incomeAmount);
const expenses = data.map((item: any) => item.expensesAmount);
const barData = {