大厅与后台工单列表改为精确补丁并支持抢单确认

This commit is contained in:
yml2213
2026-08-22 09:30:38 +08:00
parent 1f7ff016df
commit ed81122047
7 changed files with 103 additions and 10 deletions
+2 -1
View File
@@ -233,7 +233,8 @@ function patchWorkerHallCaches(
event: RealtimeEvent,
) {
if (event.operation === 'refresh') {
void queryClient.resetQueries({ queryKey: ['worker-hall-orders'] })
// 仅大厅全局配置变化走全量刷新;不清缓存,旧列表保持展示避免误点。
void queryClient.invalidateQueries({ queryKey: ['worker-hall-orders'] })
return
}
const workerSnapshot = applyWorkerDepositRule(queryClient, event.data)