main.js 637 B

1234567891011121314151617181920212223242526272829
  1. import Vue from 'vue'
  2. import 'normalize.css/normalize.css' // A modern alternative to CSS resets
  3. import './assets/fonts/iconfont.css'
  4. import ElementUI from 'element-ui'
  5. import 'element-ui/lib/theme-chalk/index.css'
  6. import locale from 'element-ui/lib/locale/lang/en' // lang i18n
  7. import '@/styles/index.scss' // global css
  8. import App from './App'
  9. import router from './router'
  10. import store from './store'
  11. import '@/icons' // icon
  12. import '@/permission' // permission control
  13. import 'babel-polyfill'
  14. Vue.use(ElementUI, { locale })
  15. Vue.config.productionTip = false
  16. new Vue({
  17. el: '#app',
  18. router,
  19. store,
  20. render: h => h(App)
  21. })