fix: 分析页面切换日期后总收支统计不更新
Some checks failed
Deploy BillAI / Deploy to Production (push) Has been cancelled

onDateChange 函数重新请求数据后同步更新 backendTotalExpense
和 backendTotalIncome,修复切换日期范围后顶部统计卡片
仍显示旧数据的问题。
This commit is contained in:
clz
2026-03-04 12:17:05 +08:00
parent 50ae47588a
commit d813fe4307

View File

@@ -235,6 +235,8 @@
}); });
if (response.result && response.data) { if (response.result && response.data) {
records = response.data.bills || []; records = response.data.bills || [];
backendTotalExpense = response.data.total_expense || 0;
backendTotalIncome = response.data.total_income || 0;
if (records.length === 0) { if (records.length === 0) {
errorMessage = '暂无账单数据'; errorMessage = '暂无账单数据';
} }