import App from './App' import {useEventEmitter} from 'ahooks' import React from 'react' export const EventBusContext = React.createContext(null) const map: { [key: string]: string } = { // '/close': 'close', } const Router = () => { const path = map[window.location.pathname] ?? 'app' if (path === 'close') { window.close() } // 事件总线 const eventBus = useEventEmitter() return {path === 'app' && } } export default Router