2022-10-18 14:32:40 +08:00
|
|
|
// core
|
2022-08-26 10:35:25 +08:00
|
|
|
import { createApp } from "vue"
|
2022-10-18 14:32:40 +08:00
|
|
|
import App from "@/App.vue"
|
|
|
|
import store from "@/store"
|
|
|
|
import router from "@/router"
|
2022-04-22 12:47:04 +08:00
|
|
|
import "@/router/permission"
|
2022-10-18 14:32:40 +08:00
|
|
|
// load
|
|
|
|
import { loadSvg } from "@/icons"
|
|
|
|
import { loadPlugins } from "@/plugins"
|
|
|
|
import { loadDirectives } from "@/directives"
|
|
|
|
// css
|
2022-05-12 19:07:54 +08:00
|
|
|
import "uno.css"
|
2022-04-22 12:47:04 +08:00
|
|
|
import "normalize.css"
|
2022-05-12 19:07:54 +08:00
|
|
|
import "element-plus/dist/index.css"
|
|
|
|
import "element-plus/theme-chalk/dark/css-vars.css"
|
2022-10-25 17:29:28 +08:00
|
|
|
import "vxe-table/lib/style.css"
|
|
|
|
import "vxe-table-plugin-element/dist/style.css"
|
2022-05-12 19:07:54 +08:00
|
|
|
import "@/styles/index.scss"
|
2022-04-20 22:40:26 +08:00
|
|
|
|
2022-04-21 18:20:39 +08:00
|
|
|
const app = createApp(App)
|
2022-10-18 14:32:40 +08:00
|
|
|
|
|
|
|
/** 加载插件 */
|
|
|
|
loadPlugins(app)
|
2022-07-01 16:25:51 +08:00
|
|
|
/** 加载全局 SVG */
|
2022-04-21 18:20:39 +08:00
|
|
|
loadSvg(app)
|
2022-10-18 14:32:40 +08:00
|
|
|
/** 加载自定义指令 */
|
|
|
|
loadDirectives(app)
|
2022-04-21 18:20:39 +08:00
|
|
|
|
2023-04-14 14:39:19 +08:00
|
|
|
app.use(store).use(router)
|
|
|
|
router.isReady().then(() => {
|
|
|
|
app.mount("#app")
|
|
|
|
})
|