main.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import store from './store'
  5. import "./icons"
  6. import "./mixins/common";
  7. import '@/assets/styles/theme/default.scss';
  8. import "@/assets/styles/index.scss";
  9. import Navigation from './utils/navigator/index'
  10. import NoData from '@/components/noData'
  11. import DragIcon from '@/components/DragIcon'
  12. import SlotDialog from '@/components/dialog/SlotDialog'
  13. import moment from 'moment'
  14. import momentFun from '@/utils/moment.js'
  15. import lodash from "lodash"
  16. Vue.config.productionTip = false
  17. momentFun(moment)
  18. Vue.prototype.$moment = moment
  19. Vue.prototype.$lodash = lodash
  20. Vue.prototype.$EventBus = new Vue()
  21. Vue.use(Navigation, { router, store })
  22. Vue.component("NoData", NoData)
  23. Vue.component("DragIcon", DragIcon)
  24. Vue.component("SlotDialog", SlotDialog)
  25. import CustomComponents from 'custom-components-mobile'
  26. import dictLoad from '@/utils/dictLoader'
  27. CustomComponents.setDictLoader(dictLoad)
  28. Vue.use(CustomComponents)
  29. import CustomUpload from '@/components/CustomUpload'
  30. Vue.component("CustomUpload", CustomUpload)
  31. import longpress from '@/directive/longpress'
  32. Vue.use(longpress)
  33. new Vue({
  34. data: {
  35. imWs: null,
  36. },
  37. router,
  38. store,
  39. render: h => h(App)
  40. }).$mount('#app')