1234567891011121314151617181920212223242526272829303132 |
- import { createApp } from 'vue'
- import { setupStore } from '@/store'
- import App from './App.vue'
- import router from './router'
- import * as ElementPlusIconsVue from '@element-plus/icons-vue'
- // 本地SVG图标
- import 'virtual:svg-icons-register'
- // 国际化
- import i18n from '@/lang/index'
- // 请求检查函数
- import { InitCheckResult } from './utils/checkResult'
- import { InitVariable } from './utils/variable'
- // 组件
- import globalComponents from '@/components'
- // 指令
- import { InitDirective } from './utils/directives'
- // 自动滚动
- import vue3SeamlessScroll from 'vue3-seamless-scroll'
- import 'animate.css/animate.min.css'
- const app = createApp(App)
- globalComponents(app)
- setupStore(app)
- for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
- app.component(key, component)
- }
- app.use(i18n).use(router).mount('#app')
- app.use(vue3SeamlessScroll, { name: 'vue3SeamlessScroll' })
- InitCheckResult(app)
- InitVariable(app)
- InitDirective(app)
|