Files
biz-pc-cloud-zax/src/main.ts
T

46 lines
1.3 KiB
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 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")