| | |
| | | import Vue from 'vue' |
| | | import App from './App.vue' |
| | | import router from './router' |
| | | import store from './store' // 引入store |
| | | /* |
| | | * @Author: 王旭 1377869194@qq.com |
| | | * @Date: 2023-05-08 13:52:20 |
| | | * @LastEditors: 王旭 1377869194@qq.com |
| | | * @LastEditTime: 2023-05-08 14:19:08 |
| | | * @FilePath: \LFWEB_NEW\src\main.js |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | */ |
| | | import Vue from 'vue'; |
| | | import App from './App.vue'; |
| | | import router from './router'; |
| | | import store from './store'; |
| | | import './assets/css/global.css'; |
| | | import i18n from './assets/lang/index'; |
| | | import axios from './http'; |
| | | import ElementUI from 'element-ui'; |
| | | import 'element-ui/lib/theme-chalk/index.css'; |
| | | import less from 'less' |
| | | import contentmenu from 'v-contextmenu' |
| | | import 'v-contextmenu/dist/index.css' |
| | | import locale from 'element-ui/lib/locale/lang/en'; |
| | | import WKT from 'terraformer-wkt-parser'; |
| | | // import locale from 'element-ui/lib/locale/lang/zh-CN' |
| | | // import 'element-ui/lib/theme-chalk/index.css'; |
| | | import '@/assets/element-variables.scss'; |
| | | import '@/assets/css/index.css' |
| | | import '@/assets/css/content.css' |
| | | import '@/assets/css/configure.css' |
| | | import '@/assets/css/config.css' |
| | | // import 'animate.css'; |
| | | import VueParticles from 'vue-particles' |
| | | import dataV from '@jiaminghi/data-view' |
| | | import directive from '@/directive/index.js' // directive |
| | | import drag from '@/assets/js/drag.js' |
| | | import elDragDialog from './utils/diaLog.js' |
| | | Vue.directive('el-drag-dialog', elDragDialog); |
| | | ElementUI.Dialog.props.closeOnClickModal.default = false; |
| | | //适配 |
| | | import "amfe-flexible/index" |
| | | |
| | | Vue.use(contentmenu) |
| | | Vue.config.productionTip = false |
| | | Vue.use(less) |
| | | Vue.use(ElementUI); |
| | | Vue.use(directive) |
| | | Vue.use(dataV) |
| | | Vue.use(VueParticles) |
| | | Vue.prototype.$echarts = echarts; |
| | | import * as echarts from 'echarts'; |
| | | Vue.use(ElementUI, { locale }); |
| | | Vue.config.productionTip = false; |
| | | Vue.prototype.$http = axios; |
| | | Vue.prototype.$bus = new Vue(); |
| | | Vue.prototype.$wkt = WKT; |
| | | Vue.config.productionTip = false; |
| | | |
| | | |
| | | |
| | | new Vue({ |
| | | render: h => h(App), |
| | | router, |
| | | i18n, |
| | | store, |
| | | }).$mount('#app') |
| | | render: (h) => h(App), |
| | | }).$mount('#app'); |