refactor: 抽离未读告警状态,不再持久化

This commit is contained in:
yangsy
2026-01-15 13:58:13 +08:00
parent de35075be8
commit b59b34e68b
9 changed files with 67 additions and 49 deletions

View File

@@ -159,7 +159,7 @@ type IndexedDbStoreId = typeof NDM_STATION_STORE_ID | typeof NDM_DEVICE_STORE_ID
type IndexedDbStoreStates = {
[NDM_STATION_STORE_ID]: { stations: Station[] };
[NDM_DEVICE_STORE_ID]: { lineDevices: LineDevices };
[NDM_ALARM_STORE_ID]: { lineAlarms: LineAlarms; unreadLineAlarms: LineAlarms };
[NDM_ALARM_STORE_ID]: { lineAlarms: LineAlarms };
};
const exportFromIndexedDB = async <K extends IndexedDbStoreId>(storeId: K, options?: { errorMsg?: string }) => {
const { errorMsg } = options ?? {};