main.js 815 B

1234567891011121314151617181920212223242526272829303132333435
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from '@/store/index'
  4. import request from '@/common/request'
  5. import util from '@/common/util.js';
  6. import {
  7. imgHost,
  8. qrcode,
  9. callurl
  10. } from '@/common/env';
  11. import shareWechat from '@/common/shareWechat.js'
  12. Vue.config.productionTip = false;
  13. //挂载全局对象
  14. //Vue.prototype.$store = store
  15. Vue.prototype.$request = request
  16. Vue.prototype.$util = util
  17. Vue.prototype.$imgHost = imgHost
  18. Vue.prototype.$wechat = shareWechat
  19. Vue.prototype.$qrcode = qrcode
  20. Vue.prototype.$callurl = callurl
  21. Vue.prototype.$isShow = false
  22. // 引入colorUI
  23. import cuCustom from '@/components/colorui/components/cu-custom.vue'
  24. Vue.config.productionTip = false
  25. App.mpType = 'app'
  26. const app = new Vue({
  27. store,
  28. request,
  29. ...App
  30. })
  31. app.$mount()