| | |
| | | import 'animate.css' |
| | | import dayjs from 'dayjs' |
| | | import 'styles/common.scss' |
| | | import * as Cesium from 'cesium' |
| | | |
| | | // 系统组件 |
| | | import debug from './debug' |
| | | import VueClipboard from 'vue3-clipboard' |
| | |
| | | window.$crudCommon = crudCommon |
| | | debug() |
| | | window.axios = axios |
| | | |
| | | const { VITE_APP_BASE,VITE_APP_CESIUM_TOKEN } = import.meta.env |
| | | window.CESIUM_BASE_URL = `${VITE_APP_BASE}cesiumPu` |
| | | Cesium.Ion.defaultAccessToken = VITE_APP_CESIUM_TOKEN |
| | | |
| | | const app = createApp(App) |
| | | for (const [key, component] of Object.entries(ElementPlusIconsVue)) { |
| | | app.component(key, component) |
| | | app.component(key, component) |
| | | } |
| | | app.component('basicContainer', basicContainer) |
| | | app.component('basicBlock', basicBlock) |
| | |
| | | app.use(store) |
| | | app.use(router) |
| | | app.use(ElementPlus, { |
| | | locale: messages[language], |
| | | locale: messages[language], |
| | | }) |
| | | app.use(Avue, { |
| | | axios, |
| | | calcHeight: 10, |
| | | locale: messages[language], |
| | | axios, |
| | | calcHeight: 10, |
| | | locale: messages[language], |
| | | }) |
| | | app.use(avueUeditor, { axios }) |
| | | app.use(VueClipboard, { |
| | | autoSetContainer: true, |
| | | appendToBody: true, // 这可以帮助解决一些更复杂的使用场景下的问题 |
| | | autoSetContainer: true, |
| | | appendToBody: true, // 这可以帮助解决一些更复杂的使用场景下的问题 |
| | | }) |
| | | app.use(globalComponents) |
| | | app.mount('#app') |