daofu-gov-pc/src/main.ts
2024-01-23 09:11:49 +08:00

42 lines
1004 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createApp } from "vue";
import App from "./App.vue";
const app = createApp(App);
import pinia from "./store";
app.use(pinia);
import router from "./router";
app.use(router);
import ElementPlus from "element-plus";
app.use(ElementPlus);
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
//富文本编辑器
// import VueQuillEditor from "vue-quill-editor";
// app.use(VueQuillEditor);
// 自定义指令
import directive from "@/utils/directive";
directive(app);
// 加载 svg 图标
import "virtual:svg-icons-register";
// 引入字体
import "@/assets/font/font.css";
// 加载 iconify 图标element plus
import { downloadAndInstall } from "@/iconify-ep";
import useSettingsStore from "./store/modules/settings";
if (useSettingsStore().app.iconifyOfflineUse) {
downloadAndInstall();
}
// 全局样式
import "@/assets/styles/globals.scss";
app.mount("#app");