AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
634 B

  1. import Vue from 'vue';
  2. /**
  3. * env文件里配置自定义运行菜单每一个js代表一个域名
  4. */
  5. const obj = process.env.ENV_PATH == undefined ? require('../env/dev.js') : require(process.env.ENV_PATH)
  6. const base = obj.baseUrl
  7. // http.js使用
  8. const baseUrl = `${base}/autoSR/api`;
  9. // config 使用
  10. const host = `${base}/autoSR/api`;
  11. const hosts = `${base}/`;
  12. const hostAdmin = `${base}/admin`;
  13. const domain = obj.domain || '';
  14. const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式
  15. Vue.prototype.$domain = obj.domain || '';
  16. export {
  17. domain,
  18. baseUrl,
  19. host,
  20. hosts,
  21. iMServiceHost,
  22. base,
  23. hostAdmin
  24. }