main.js 1018 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 router from './router'
  5. import MintUI from 'mint-ui'
  6. import 'mint-ui/lib/style.css'
  7. import App from './App'
  8. import 'echarts'
  9. import ECharts from 'vue-echarts'
  10. import api from './api'
  11. import datetime from './utils/datetime'
  12. import constant from './utils/constant'
  13. import recheck from './utils/recheck'
  14. // import 'lib-flexible/flexible.js'
  15. import DatePicker from 'vue2-datepick'
  16. import vueHashCalendar from 'vue-hash-calendar'
  17. import 'vue-hash-calendar/lib/vue-hash-calendar.css'
  18. Vue.use(MintUI)
  19. Vue.component('v-chart', ECharts)
  20. Vue.use(DatePicker )
  21. Vue.use(vueHashCalendar)
  22. Vue.prototype.$api = api
  23. Vue.prototype.$datetime = datetime
  24. Vue.prototype.$const = constant
  25. Vue.prototype.$recheck = recheck
  26. Vue.config.productionTip = false
  27. /* eslint-disable no-new */
  28. new Vue({
  29. el: '#app',
  30. router,
  31. components: {
  32. App
  33. },
  34. template: '<App/>'
  35. })