大厅与后台工单列表改为精确补丁并支持抢单确认
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user