耀实惠小程序
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.

24 lines
1.2 KiB

  1. const ENV_API_URL = {
  2. // development: 'http://localhost:8080/hanhai/', //开发环境
  3. // production: 'http://natapp.xzaiyp.top/hanhai/', //生产环境
  4. // production: 'http://natapp.xzaiyp.top/hanhai/', //生产环境 本地
  5. development: 'https://medicine-api.xzaiyp.top/hanhai/', //开发环境
  6. production: 'https://medicine-api.xzaiyp.top/hanhai/', //生产环境
  7. }
  8. const IMG_URL_SHARE = 'https://medicine.xzaiyp.top/' // 图片公用路径
  9. const IMG_URL = 'https://medicine.xzaiyp.top/medicalXcx/' // 图片公用路径
  10. const upload_img = 'https://medicine-api.xzaiyp.top/hanhai/api/info/upload' // 本地上传图片路径
  11. export const API_URL = ENV_API_URL[process.env.NODE_ENV || 'development']; //后台接口域名
  12. export {IMG_URL,upload_img,IMG_URL_SHARE}
  13. // const ENV_API_URL = {
  14. // development: 'http://localhost:8080', //开发环境
  15. // production: 'http://localhost:8080', //生产环境
  16. // }
  17. // const IMG_URL_SHARE = 'http://localhost:8080' // 图片公用路径
  18. // const IMG_URL = 'http://localhost:8080' // 图片公用路径
  19. // const upload_img = 'http://localhost:8080' // 本地上传图片路径
  20. // export const API_URL = ENV_API_URL[process.env.NODE_ENV || 'development']; //后台接口域名
  21. // export {IMG_URL,upload_img,IMG_URL_SHARE}