You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
624 B
21 lines
624 B
1 year ago
|
import { createApp } from "vue";
|
||
|
import style from './mixins/style.js';
|
||
|
import store, { useAppStore } from "./store/index.js";
|
||
|
import router from "./router/index.js";
|
||
|
import ElementPlus from "element-plus";
|
||
|
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
||
|
import App from "/app.js";
|
||
|
import useLocale from "./locale/index.js";
|
||
|
|
||
|
const app = createApp(App);
|
||
|
app.use(store);
|
||
|
await useAppStore().init();
|
||
|
app.use(useLocale());
|
||
|
app.use(router);
|
||
|
app.use(ElementPlus);
|
||
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
||
|
app.component(`Ep${key}`, component);
|
||
|
}
|
||
|
app.mixin(style);
|
||
|
app.mount("#app");
|