fix: 分析页面切换日期后总收支统计不更新
Some checks failed
Deploy BillAI / Deploy to Production (push) Has been cancelled
Some checks failed
Deploy BillAI / Deploy to Production (push) Has been cancelled
onDateChange 函数重新请求数据后同步更新 backendTotalExpense 和 backendTotalIncome,修复切换日期范围后顶部统计卡片 仍显示旧数据的问题。
This commit is contained in:
@@ -235,6 +235,8 @@
|
||||
});
|
||||
if (response.result && response.data) {
|
||||
records = response.data.bills || [];
|
||||
backendTotalExpense = response.data.total_expense || 0;
|
||||
backendTotalIncome = response.data.total_income || 0;
|
||||
if (records.length === 0) {
|
||||
errorMessage = '暂无账单数据';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user