46 lines
1.3 KiB
TypeScript
46 lines
1.3 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 { forwardWechatOAuthQueryToHashRoute } from "/@/utils/wechat-pc"
|
||
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"
|
||
import Tmap from "@map-component/vue-tmap"
|
||
|
||
// Initialize anti-debug protection
|
||
initAntiDebug()
|
||
// 微信网站应用回调落在 /?code= 时转发到 #/authredirect(redirect_uri 不能带 #)
|
||
forwardWechatOAuthQueryToHashRoute()
|
||
|
||
// 导入全局样式
|
||
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)
|
||
.use(Tmap) // 腾讯地图
|
||
.mount("#app")
|