main.js 917 B

123456789101112131415161718192021222324252627282930313233
  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. Vue.config.productionTip = false
  20. App.mpType = 'app'
  21. const app = new Vue({
  22. ...App
  23. })
  24. app.$mount()