main.js 782 B

1234567891011121314151617181920212223242526
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import ElementUI from 'element-ui';
  4. import 'element-ui/lib/theme-chalk/index.css';
  5. import router from './router'
  6. import store from './store'
  7. import echarts from 'echarts'
  8. import 'echarts/map/js/china'
  9. import SvgIcon from '@/components/svgIcon/index.vue' // svg component
  10. import '@/assets/svg' // 导入图标资源
  11. import '@/core/http';
  12. import VJstree from 'vue-jstree'
  13. // 将自动注册所有组件为全局组件
  14. import dataV from '@jiaminghi/data-view'
  15. Vue.use(dataV)
  16. Vue.prototype.$echarts = echarts
  17. Vue.use(ElementUI);
  18. Vue.prototype.$store = store
  19. Vue.component('svg-icon', SvgIcon)
  20. Vue.component('v-jstree', VJstree)
  21. Vue.config.productionTip = false
  22. new Vue({
  23. router,
  24. store,
  25. render: h => h(App),
  26. }).$mount('#app')