Use Dexie instead of Pinia store values in tileList inside mapEditor

This commit is contained in:
2025-01-25 13:49:03 +01:00
parent 9cdfcbcc56
commit 69f9944dc7
5 changed files with 37 additions and 21 deletions

View File

@ -68,6 +68,10 @@ export class BaseStorage<T extends { id: string }> {
}
}
liveQuery() {
return this.dexie.table(this.tableName).toArray()
}
async reset() {
try {
await this.dexie.table(this.tableName).clear()