mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2026-03-24 22:42:26 +00:00
37 lines
733 B
TypeScript
37 lines
733 B
TypeScript
import { createPinia } from "pinia";
|
|
import mitt from "mitt";
|
|
import VueECharts from "vue-echarts";
|
|
import { App } from "vue";
|
|
import { createModule } from "./module";
|
|
import { createEps } from "./eps";
|
|
import { router } from "../router";
|
|
import ElementPlus from "element-plus";
|
|
import "element-plus/theme-chalk/src/index.scss";
|
|
import { Loading } from "../utils";
|
|
|
|
export async function bootstrap(app: App) {
|
|
// pinia
|
|
app.use(createPinia());
|
|
|
|
// element-plus
|
|
app.use(ElementPlus);
|
|
|
|
// mitt
|
|
app.provide("mitt", mitt());
|
|
|
|
// charts
|
|
app.component("v-chart", VueECharts);
|
|
|
|
// 路由
|
|
app.use(router);
|
|
|
|
// eps
|
|
await createEps();
|
|
|
|
// 模块
|
|
const { eventLoop } = createModule(app);
|
|
|
|
// 加载
|
|
Loading.set([eventLoop()]);
|
|
}
|