index.js 506 B

123456789101112131415161718192021222324252627282930
  1. import Vue from 'vue'
  2. import browser from '@/utils/browser'
  3. import {
  4. $showShare,
  5. $hideShare,
  6. } from '@/components/popupLayout'
  7. import {$showHotspot,$hideHotspot } from '@/components/hotspot/index.js'
  8. Vue.prototype.$bus = new Vue()
  9. Vue.mixin({
  10. data() {
  11. return {
  12. isMobile: browser.mobile
  13. }
  14. },
  15. methods: {
  16. $showShare,
  17. $hideShare,
  18. $showHotspot,
  19. $hideHotspot
  20. // $showLoading,
  21. // $showBroadcast,
  22. // $hideBroadcast
  23. }
  24. })