index.js 806 B

1234567891011121314151617181920212223242526272829303132333435
  1. // 挂载变量
  2. import {
  3. BASE_URL,
  4. UPLOAD_URL,
  5. UPLOAD_BASE,
  6. SOCKET_URL,
  7. IMG_URL,
  8. imgurl,
  9. H5_URL,
  10. WORD_URL,LAWYER_URL,LAWYER_URL_FG,
  11. } from '../env.js';
  12. import store from '@/common/store';
  13. import tools from '@/common/utils/tools'
  14. // mixin混入
  15. import mixin from '@/common/mixins';
  16. const install = Vue => {
  17. Vue.prototype.$BASE_URL = BASE_URL;
  18. Vue.prototype.$SOCKET_URL = SOCKET_URL;
  19. Vue.prototype.$UPLOAD_URL = UPLOAD_URL;
  20. Vue.prototype.$UPLOAD_BASE = UPLOAD_BASE;
  21. Vue.prototype.$IMG_URL = IMG_URL;
  22. Vue.prototype.$imgurl = imgurl;
  23. Vue.prototype.$H5_URL = H5_URL;
  24. Vue.prototype.$WORD_URL = WORD_URL;
  25. Vue.prototype.$LAWYER_URL = LAWYER_URL;
  26. Vue.prototype.$LAWYER_URL_FG = LAWYER_URL_FG;
  27. // 挂载工具函数
  28. Vue.prototype.$tools = tools;
  29. Vue.mixin(mixin);
  30. }
  31. export default {
  32. install
  33. }