main.js 935 B

12345678910111213141516171819202122232425262728293031323334
  1. import Vue from 'vue'
  2. import 'normalize.css/normalize.css' // A modern alternative to CSS resets
  3. import ElementUI from 'element-ui'
  4. import 'element-ui/lib/theme-chalk/index.css'
  5. import '@/styles/index.scss' // global css
  6. import App from './App'
  7. import store from './store'
  8. import router from './router'
  9. import '@/icons' // icon
  10. import '@/permission' // permission control
  11. import '@/checkPermission' //按钮权限 全局自定义指令v-is
  12. // import lodash
  13. import _ from 'lodash'
  14. Vue.prototype._ = _
  15. Vue.prototype.doesJobShow = PLATFROM_CONFIG.doesJobShow
  16. Vue.prototype.accountGroupType = PLATFROM_CONFIG.accountGroupType
  17. // import echarts
  18. import * as echarts from 'echarts'
  19. import Vue2OrgTree from 'vue2-org-tree'
  20. import 'vue2-org-tree/dist/style.css'
  21. Vue.use(Vue2OrgTree)
  22. Vue.use(ElementUI)
  23. Vue.prototype.$echarts = echarts
  24. Vue.config.productionTip = false
  25. new Vue({
  26. router,
  27. store,
  28. render: (h) => h(App)
  29. }).$mount('#app')