main.js 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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.$BASE_URL = api.BASE_URL;
  6. Vue.prototype.$websiteUrl = api.websiteUrl
  7. // 引入colorui组件
  8. import cuCustom from 'colorui/components/cu-custom.vue'
  9. Vue.component('cu-custom', cuCustom)
  10. //配置公共方法
  11. import common from './common/common.js'
  12. Vue.prototype.$noMultipleClicks = common.noMultipleClicks; // (禁止重复点击)
  13. // Vue.prototype.$websiteUrl = common.websiteUrl;
  14. // Vue.prototype.$BASE_URL = common.BASE_URL;
  15. // Vue.prototype.$websiteUrl = 'https://qhome.usky.cn';
  16. // Vue.prototype.$BASE_URL = 'https://qhome.usky.cn/USKYZHAF/USKYZHAF.php/Home/';
  17. import JsonExcel from 'vue-json-excel'
  18. Vue.component('downloadExcel', JsonExcel)
  19. //#ifdef H5
  20. import wx from '@/node_modules/jweixin-module'
  21. Vue.prototype.$wx = wx
  22. //#endif
  23. Vue.config.productionTip = false
  24. App.mpType = 'app'
  25. const app = new Vue({
  26. ...App
  27. })
  28. app.$mount()