main.js 791 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import router from './router'
  4. import {
  5. $alert,
  6. $tips,
  7. $confirm,
  8. $hideLoading,
  9. $showLoading,
  10. $showBroadcast,
  11. $hideBroadcast,
  12. $message
  13. } from './components/popupLayout'
  14. import browser from "@/utils/browser.js";
  15. Vue.config.productionTip = false
  16. Vue.prototype.$cdn = 'https://shlmuseum.oss-cn-shanghai.aliyuncs.com/shls_museum/'
  17. Vue.prototype.$bus = new Vue()
  18. Vue.prototype.$isMobile = browser.mobile
  19. Vue.mixin({
  20. methods: {
  21. $alert,
  22. $tips,
  23. $confirm,
  24. $hideLoading,
  25. $showLoading,
  26. $showBroadcast,
  27. $hideBroadcast,
  28. $message
  29. }
  30. })
  31. let {axios} = require('./utils/http.js')
  32. Vue.prototype.$http = axios
  33. Vue.prototype.$bus = new Vue()
  34. new Vue({
  35. router,
  36. render: h => h(App)
  37. }).$mount('#app')