main.js 748 B

12345678910111213141516171819202122232425262728
  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 store from './store'
  7. import ElementUI from 'element-ui'
  8. import 'element-ui/lib/theme-chalk/index.css'
  9. import './framework/style/awesome.less'
  10. Vue.use(ElementUI, { size: "mini", zIndex: 1000 })
  11. import './framework/style/layout.scss'
  12. import './utils/scan/directive' //自定义指令
  13. import componentsPlugin from '@/plugins/components'
  14. Vue.use(componentsPlugin)
  15. Vue.config.productionTip = false
  16. /* eslint-disable no-new */
  17. new Vue({
  18. el: '#app',
  19. router,
  20. store,
  21. components: { App },
  22. template: '<App/>'
  23. })