fix: 修复 transaction 表名与 Dexie 内置方法冲突(导出 JSON 与记账失效)

This commit is contained in:
root
2026-10-16 13:19:54 +08:00
parent f0d30e2c29
commit 5a67b2f59a
10 changed files with 57 additions and 42 deletions
+2 -1
View File
@@ -103,7 +103,8 @@ export class WorklogDB extends Dexie {
setting!: Table<{ key: string; value: string }, string>
memo!: Table<Memo, number>
credential!: Table<Credential, number>
transaction!: Table<Transaction, number>
// 注意:transaction 表通过 db.table('transaction') 访问,
// 因为 db.transaction 会与 Dexie 内置的 transaction() 方法冲突
sync_mirror!: Table<SyncMirror, number>
tombstone!: Table<SyncTombstone, number>