12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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.less";
- 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";
- import upload from "./components/upload/index.vue";
- async function appInit() {
- const app = createApp(App);
-
- app.component("SvgIcon", SvgIcon);
-
- await setupStore(app);
-
- app.use(ArcoVue);
- app.use(ArcoVueIcon);
- app.use(i18n);
- app.component("upload", upload);
- window["$t"] = i18n.global.t;
- app.config.warnHandler = () => null;
-
- await setupRouter(app);
-
- await router.isReady();
-
- app.mount("#app", true);
-
- window["$vue"] = app;
- }
- appInit().then(() => {
-
-
-
-
- });
|