16 lines
514 B
TypeScript
16 lines
514 B
TypeScript
// import { BschIframeType, LightAppModal, IframePageParmas, RoleInfo, StateEnum } from "@/types";
|
|
import mitt, { Emitter } from "mitt";
|
|
|
|
type MittType<T = any> = {
|
|
reload: void; //刷新页面
|
|
setMenuPath: number; //选择左侧菜单
|
|
resetMenuPath: any[]; //重置设置左侧菜单
|
|
setNavPath: any[]; //设置面包屑
|
|
resetLayout: { identity: number; modId: number }; //重置页面菜单
|
|
};
|
|
|
|
// 类型
|
|
const emitter: Emitter<MittType> = mitt<MittType>();
|
|
// 导出
|
|
export default emitter;
|