2026-02-02 13:32:33 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
|
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
|
|
|
|
import store from './stores/index'
|
2026-02-03 13:22:07 +08:00
|
|
|
import 'normalize.css'
|
2026-02-02 13:32:33 +08:00
|
|
|
import './assets/css/style.css'
|
|
|
|
|
import SvgIcon from "@/components/SvgIcon/index.vue";
|
|
|
|
|
import "virtual:svg-icons-register";
|
2026-03-31 15:45:15 +08:00
|
|
|
import directives from "./directives/index.js";
|
2026-02-02 13:32:33 +08:00
|
|
|
|
2026-02-03 11:21:10 +08:00
|
|
|
import i18n from "./lang/index";
|
2026-02-02 13:32:33 +08:00
|
|
|
import flexible from "./utils/flexible.js";
|
|
|
|
|
|
|
|
|
|
import "./router/router-config" // 路由守卫,做动态路由的地方
|
|
|
|
|
import ElementPlus from 'element-plus'
|
|
|
|
|
import 'element-plus/dist/index.css'
|
|
|
|
|
|
2026-02-27 14:58:36 +08:00
|
|
|
|
2026-02-02 13:32:33 +08:00
|
|
|
const app = createApp(App)
|
|
|
|
|
app.use(router)
|
2026-03-31 15:45:15 +08:00
|
|
|
.use(directives)
|
2026-02-25 13:45:55 +08:00
|
|
|
.use(ElementPlus)
|
|
|
|
|
.use(store)
|
|
|
|
|
.component("SvgIcon", SvgIcon)
|
|
|
|
|
.use(i18n)
|
|
|
|
|
.mount('#app')
|
2026-02-02 13:32:33 +08:00
|
|
|
|
|
|
|
|
flexible();
|
|
|
|
|
|