/* * @Description: 路由设置 * @FilePath: \base-framework\packages\hooks\src\context.ts * @Author: freud * @Date: 2023-07-11 09:16:30 * @LastEditTime: 2023-08-17 09:27:56 * @LastEditors: freud * @Reference: */ import { PageEnum } from '@eciol/shared'; import type { AnyNormalFunction } from '@eciol/types'; interface ContextOptions { useAppStore: any; useMultipleTabStore: any; useUserStore: any; PageEnum: typeof PageEnum; prefixCls: string; } let context: ContextOptions = { useAppStore: () => {}, useMultipleTabStore: () => {}, useUserStore: () => {}, PageEnum, prefixCls: '', }; const initHooksSetting = (func: AnyNormalFunction) => { context = func(); }; export { context, initHooksSetting };