wupengfei
5 天以前 d78a958fc13b1dcb02b2709181c625c1e4d5964b
src/hooks/useEvent.ts
@@ -3,6 +3,10 @@
export type GlobalEvent = {
  'home:add': any;
  'taskManage:add': any;
  'taskManage:edit': any;
  sureTaskSettlementOrder: any;
  checkReceiveTask: any;
};
export type GlobalEventListener<T extends keyof GlobalEvent> = (payload: GlobalEvent[T]) => any;