Commit c1806a2a by chenwq

优化活码编辑页面的数据查询,确保展示最新的群池和门店配置

1 parent f588052c
Pipeline #528 for c1806a2a failed in 0 seconds
......@@ -133,6 +133,9 @@ export default function GroupCodeEditor({ params }: Props) {
const detail = useQuery({
queryKey: ['live-code-detail', params?.id],
enabled: editing && Boolean(params?.id),
// 活码编辑必须展示服务端最新的群池和门店配置;不沿用子应用默认的 30 秒缓存。
staleTime: 0,
refetchOnMount: 'always',
queryFn: () => liveCodeApi.getLiveCodeDetail<Detail>({ id: params?.id }),
});
useEffect(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!