| | |
| | | import router, { setupRouter } from '@/router' |
| | | |
| | | // 权限 |
| | | import { setupAuth } from '@/directives' |
| | | import { setupAuth, setupMountedFocus } from '@/directives' |
| | | |
| | | import { createApp } from 'vue' |
| | | |
| | |
| | | |
| | | import './permission' |
| | | |
| | | import '@/plugins/tongji' // 百度统计 |
| | | import Logger from '@/utils/Logger' |
| | | |
| | | import VueDOMPurifyHTML from 'vue-dompurify-html' // 解决v-html 的安全隐患 |
| | |
| | | |
| | | import lifecycles from '@/utils/lifecycles' // 生命周期函数 |
| | | |
| | | import * as ElementPlusIconsVue from '@element-plus/icons-vue' |
| | | |
| | | // import credentialsFetch from "@/utils/fetch"; |
| | | |
| | | const isProduction = process.env.NODE_ENV === "production"; |
| | |
| | | // 创建实例 |
| | | const setupAll = async () => { |
| | | const app = createApp(App) |
| | | |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component) |
| | | } |
| | | |
| | | await setupI18n(app) |
| | | |
| | |
| | | |
| | | setupAuth(app) |
| | | |
| | | setupMountedFocus(app) |
| | | |
| | | await router.isReady() |
| | | |
| | | app.use(VueDOMPurifyHTML) |