main.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import store from '@/store'
  4. import { h5Router } from '@/router'
  5. import { Loading } from 'element-ui'
  6. import Invite from '@/components/popup/invite'
  7. import Avatar from '@/components/popup/avatar'
  8. import Info from '@/components/popup/userInfo'
  9. import otherInfo from '@/components/popup/otherInfo'
  10. import imgPreview from '@/components/popup/imgPreview'
  11. import packetGet from '@/components/popup/packetGet'
  12. import packetSend from '@/components/popup/packetSend'
  13. import Toast from '@/components/popup/toast'
  14. import VueClipboard from 'vue-clipboard2'
  15. import directive from '@/plugins/directive'
  16. // 引用公共模块
  17. import '../common'
  18. import i18n from '@/util/lang/lang'
  19. // import { register } from 'register-service-worker'
  20. // import { MessageBox } from 'element-ui'
  21. Vue.use(Invite, store)
  22. Vue.use(Avatar, store)
  23. Vue.use(Info, store)
  24. Vue.use(otherInfo, store)
  25. Vue.use(packetGet, store)
  26. Vue.use(packetSend, store)
  27. Vue.use(Toast)
  28. Vue.use(VueClipboard)
  29. Vue.use(directive)
  30. Vue.use(imgPreview)
  31. Vue.use(Loading)
  32. Vue.config.productionTip = false
  33. new Vue({
  34. render: h => h(App),
  35. router: h5Router,
  36. i18n,
  37. store
  38. }).$mount('#app')