fix: 统一各页面账单分类来源

bills 和 review 页面改从 $lib/data/categories 导入分类列表,
删除本地重复硬编码的旧版 13 项分类。
BillDetailDrawer 的 categories prop 类型改为 readonly string[]
以兼容 as const 导出的元组类型。
This commit is contained in:
clz
2026-03-03 20:50:45 +08:00
parent 642ea2d3ef
commit aa4f1615ce
3 changed files with 5 additions and 13 deletions

View File

@@ -25,7 +25,7 @@
interface Props {
open?: boolean;
record?: UIBill | null;
categories?: string[];
categories?: readonly string[];
title?: string;
viewDescription?: string;