main.js 825 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import Vue from 'vue'
  2. import App from './App'
  3. import api from './util/api.js'
  4. Vue.prototype.$myRequest = api.myRequest;
  5. Vue.prototype.$myRequest2 = api.myRequest2;
  6. Vue.prototype.$BASE_URL = api.BASE_URL;
  7. Vue.prototype.$websiteUrl = api.websiteUrl
  8. // 引入colorui组件
  9. import cuCustom from 'colorui/components/cu-custom.vue'
  10. Vue.component('cu-custom', cuCustom)
  11. //配置公共方法
  12. import common from './common/common.js'
  13. Vue.prototype.$noMultipleClicks = common.noMultipleClicks; // (禁止重复点击)
  14. import JsonExcel from 'vue-json-excel'
  15. Vue.component('downloadExcel', JsonExcel)
  16. //#ifdef H5
  17. import wx from '@/node_modules/jweixin-module'
  18. Vue.prototype.$wx = wx
  19. //#endif
  20. Vue.config.productionTip = false
  21. App.mpType = 'app'
  22. const app = new Vue({
  23. ...App
  24. })
  25. app.$mount()