fuchengshen
2022-07-15 dfdcca599b595c7340b31ee7cd5878f29a3268eb
src/main.ts
@@ -4,6 +4,7 @@
// cool
import { bootstrap } from "./cool";
// router
import router from "./router";
@@ -23,21 +24,26 @@
// echarts
import VueECharts from "vue-echarts";
import io from 'socket.io-client'
import { Vue } from "vue-demi";
const app = createApp(App);
bootstrap(app)
   .then(() => {
      // echarts 可视图表
      app.component("v-chart", VueECharts);
  .then(() => {
    // echarts 可视图表
    app.component("v-chart", VueECharts);
      // 事件通讯
      app.provide("mitt", mitt());
    // 事件通讯
    app.provide("mitt", mitt());
      app.use(store).use(router).use(ElementPlus).mount("#app");
   })
   .catch((err: string) => {
      console.error(`COOL-ADMIN 启动失败`, err);
   });
    app.use(store).use(router).use(ElementPlus).mount("#app");
  })
  .catch((err: string) => {
    console.error(`COOL-ADMIN 启动失败`, err);
  });
// 应用加载
store.dispatch("appLoad");