12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { createApp } from 'vue'
- import App from './App.vue'
- import router, { setupRouter } from '@/router'
- import { i18n } from '@/i18n'
- import { setupStore } from '@/store'
- import ArcoVue from '@arco-design/web-vue';
- import '@arco-design/web-vue/dist/arco.css';
- import 'virtual:svg-icons-register'
- import '@/assets/iconsvg/iconfont'
- import SvgIcon from '@/components/Svg-icon/SvgIcon.vue'
- import ArcoVueIcon from '@arco-design/web-vue/es/icon'
- async function appInit() {
- const app = createApp(App)
-
- app.component('SvgIcon', SvgIcon)
-
- await setupStore(app)
-
- app.use(ArcoVue)
- app.use(ArcoVueIcon)
- app.use(i18n)
-
- window['$t'] = i18n.global.t
-
- await setupRouter(app)
-
- await router.isReady()
-
- app.mount('#app', true)
-
- window['$vue'] = app
- }
- appInit().then(() => {
-
-
-
-
- })
|