main.js 576 B

12345678910111213141516171819202122232425262728
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store'
  4. import Toast from '@/wxcomponents/vant/toast/toast';
  5. import loadSke from '@/components/skeleton/index/index.vue'
  6. Vue.component('loadSke', loadSke)
  7. import {
  8. goMiniApp,
  9. goPage,
  10. clickJumpType,
  11. wxPay
  12. } from '@/utils/utils.js'
  13. Vue.config.productionTip = false
  14. App.mpType = 'app'
  15. Vue.prototype.goMiniApp = goMiniApp
  16. Vue.prototype.goPage = goPage
  17. Vue.prototype.Toast = Toast
  18. Vue.prototype.clickJumpType = clickJumpType
  19. Vue.prototype.wxPay = wxPay
  20. const app = new Vue({
  21. store,
  22. ...App
  23. })
  24. app.$mount()