import { createApp } from 'vue' import App from './App.vue' import router from './router' import { setupStore } from '@/store' import { globRegisterCustomComponents } from '@/components/globRegisterComponents' import { createPermissonGuard } from '@/router/guard/permission' import { globRegisterAntdComponents } from '@/utils/core/lazy_use' import '@/global/global.less' import 'virtual:svg-icons-register' // import 'codemirror/lib/codemirror.css' declare global { // 类型申明 interface Window { FORM_ENGINE_URL: string License_APPLICATION_URL: string REQUEST_URL: { 'MANAGE-API': string 'RBAC-API': string 'OA-API': string } APPLICATION_ID: { '4A': string } } } import 'jcbpm-vue-hi/dist/style.css' import 'element-plus/dist/index.css' const app = createApp(App) // Configure store setupStore(app) // 全局注册antd组件,按需加载 globRegisterAntdComponents(app) // 全局注册自定义公共组件 globRegisterCustomComponents(app) // 路由卫士 createPermissonGuard(router) app.use(router) app.mount('#app')