main.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // The Vue build version to load with the `import` command
  2. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  3. import Vue from 'vue'
  4. import App from './App'
  5. import router from './router'
  6. import ElementUI from 'element-ui'
  7. import 'element-ui/lib/theme-chalk/index.css'
  8. import axios from 'axios'
  9. import VueCookies from 'vue-cookies'
  10. // 引入echarts
  11. import echarts from 'echarts'//echarts
  12. import store from './store'
  13. import directive from './directive' // directive
  14. import plugins from './plugins' // plugins
  15. import { selectDictLabel, selectDictLabels} from "@/utils/ruoyi";
  16. import '@/assets/styles/ruoyi.scss' // ruoyi css
  17. //首佳UI
  18. import '@/assets/styles/base.scss' // 自定义公共样式
  19. import '@/assets/iconfont/iconfont.css'; //字体图标
  20. import '@/assets/iconfont/iconfont.js'; //字体图标
  21. import '@/assets/styles/font.scss';//字体引入
  22. // 字典数据组件
  23. import DictData from '@/components/DictData'
  24. import './assets/icons' // icon
  25. import './permission' // permission control
  26. //DataV动效组件
  27. import dataV from '@jiaminghi/data-view'
  28. // //WebSocket封装方法
  29. // import * as socketApi from '@/api/socket'
  30. // Vue.prototype.socketApi = socketApi
  31. Vue.prototype.$axios = axios
  32. Vue.config.productionTip = false
  33. Vue.prototype.selectDictLabel = selectDictLabel
  34. Vue.prototype.selectDictLabels = selectDictLabels
  35. Vue.use(ElementUI)
  36. Vue.use(VueCookies)
  37. Vue.use(directive)
  38. Vue.use(plugins)
  39. Vue.use(dataV)
  40. Vue.prototype.$echarts = echarts //挂载echarts
  41. DictData.install()
  42. /* eslint-disable no-new */
  43. new Vue({
  44. el: '#app',
  45. router,
  46. store,
  47. render: h => h(App)
  48. })