41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { createApp } from "vue"
|
|
import pinia from "/@/stores/index"
|
|
import App from "./App.vue"
|
|
import router from "./router"
|
|
import { directive } from "/@/directive"
|
|
import Components from "/@/components"
|
|
import { i18n } from "/@/i18n"
|
|
import { properties } from "/@/utils/globalProperties"
|
|
import { initAntiDebug } from "/@/utils/anti-debug"
|
|
import "/@/assets/styles/global.scss"
|
|
import VxeUI from "vxe-pc-ui"
|
|
import VxeUITable from "vxe-table"
|
|
import "vxe-table/lib/style.css"
|
|
import VxeUIPluginRenderElement from "@vxe-ui/plugin-render-element"
|
|
import "@vxe-ui/plugin-render-element/dist/style.css"
|
|
|
|
// Initialize anti-debug protection
|
|
initAntiDebug()
|
|
|
|
// 导入全局样式
|
|
import "/@/theme/tailwind.css"
|
|
import "/@/theme/index.scss"
|
|
|
|
const app = createApp(App)
|
|
|
|
// 全局自定方法挂载
|
|
properties(app)
|
|
// 全局自定义指令挂载
|
|
directive(app)
|
|
|
|
VxeUI.use(VxeUIPluginRenderElement)
|
|
|
|
app
|
|
.use(pinia) // pinia 存储
|
|
.use(router) // 路由
|
|
.use(Components) // 全局引入自定义的组件&第三方的组件
|
|
.use(i18n) // 国际化
|
|
.use(VxeUI)
|
|
.use(VxeUITable)
|
|
.mount("#app")
|