main.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 locale from 'element-ui/lib/locale/lang/en' // lang i18n 英文
  6. import { DatePicker } from 'ant-design-vue'
  7. Vue.use(DatePicker)
  8. import '@/styles/index.scss' // global css
  9. import App from './App'
  10. import store from './store'
  11. import router from './router'
  12. import '@/icons' // icon
  13. // import '@/permission' // permission control/
  14. import htmlToPdf from '@/utils/htmlToPdf'
  15. Vue.use(htmlToPdf)
  16. import animated from 'animate.css'
  17. Vue.use(animated)
  18. /**
  19. * If you don't want to use mock-server
  20. * you want to use MockJs for mock api
  21. * you can execute: mockXHR()
  22. *
  23. * Currently MockJs will be used in the production environment,
  24. * please remove it before going online! ! !
  25. */
  26. import axios from 'axios'
  27. Vue.prototype.$http = axios
  28. // set ElementUI lang to EN
  29. // Vue.use(ElementUI, { locale }) 英文
  30. Vue.use(ElementUI)
  31. Vue.config.productionTip = false
  32. new Vue({
  33. el: '#app',
  34. router,
  35. store,
  36. render: h => h(App)
  37. })