fix: avoid mutation error from interrupting query

This commit is contained in:
yangsy
2025-12-01 15:22:50 +08:00
parent b4e2926f08
commit 2116631ba6
3 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ export function useLineAlarmsQuery() {
queryFn: async ({ signal }) => {
console.time('useLineALarmCountsQuery');
for (const station of stationList.value) {
await getStationAlarmCounts({ station, signal });
await getStationAlarmCounts({ station, signal }).catch(() => {});
}
console.timeEnd('useLineALarmCountsQuery');
// pollingStore.updateAlarmQueryUpdatedAt();