Compare commits

...

3 Commits

Author SHA1 Message Date
clz
d813fe4307 fix: 分析页面切换日期后总收支统计不更新
Some checks failed
Deploy BillAI / Deploy to Production (push) Has been cancelled
onDateChange 函数重新请求数据后同步更新 backendTotalExpense
和 backendTotalIncome,修复切换日期范围后顶部统计卡片
仍显示旧数据的问题。
2026-03-04 12:17:05 +08:00
clz
50ae47588a fix: 修复分类名称不一致问题
- category.yaml 中「宠物用品」改为「宠物相关」,与前端 categories.ts 保持一致
- 删除「转账红包」独立分类,此类流水归入默认的「其他支出」
2026-03-04 12:16:59 +08:00
clz
5f10173ffb docs: 更新 CHANGELOG.md 2026-03-04 00:46:23 +08:00
3 changed files with 16 additions and 7 deletions

View File

@@ -5,6 +5,18 @@
格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/)
版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
## [Unreleased]
### 新增
- **酒店旅游分类** - 新增「酒店旅游」支出分类
- 涵盖关键词:酒店、宾馆、民宿、客栈、携程、飞猪、去哪儿、同程、旅游、旅行、景区、门票、度假等
- 相关关键词从「文化休闲」和「交通出行」中分离,避免分类冲突
### 修复
- **各页面账单分类不一致** - 账单列表页和复核页改从 `$lib/data/categories` 统一导入分类列表
- 删除两处本地重复硬编码的旧版 13 项分类
- `BillDetailDrawer``categories` prop 类型改为 `readonly string[]`
## [1.3.1] - 2026-01-26
### 优化

View File

@@ -82,8 +82,8 @@
- 供暖
- 暖气
# 宠物用品
宠物用品:
# 宠物相关
宠物相关:
- 宠物
- 猫咪
-
@@ -281,11 +281,6 @@
- 粒上皇 # 炒货零食店
- 盒马
# 转账红包
转账红包:
- 红包
- 转账给
收入分类:
退款:

View File

@@ -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 = '暂无账单数据';
}