| | |
| | | // cool |
| | | import { bootstrap } from "./cool"; |
| | | |
| | | |
| | | // router |
| | | import router from "./router"; |
| | | |
| | |
| | | // 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"); |