|
|
- const ENV_API_URL = {
- // development: 'http://localhost:8080/hanhai/', //开发环境
- // production: 'http://natapp.xzaiyp.top/hanhai/', //生产环境
- // production: 'http://natapp.xzaiyp.top/hanhai/', //生产环境 本地
- development: 'https://medicine-api.xzaiyp.top/hanhai/', //开发环境
- production: 'https://medicine-api.xzaiyp.top/hanhai/', //生产环境
- }
- const IMG_URL_SHARE = 'https://medicine.xzaiyp.top/' // 图片公用路径
- const IMG_URL = 'https://medicine.xzaiyp.top/medicalXcx/' // 图片公用路径
- const upload_img = 'https://medicine-api.xzaiyp.top/hanhai/api/info/upload' // 本地上传图片路径
- export const API_URL = ENV_API_URL[process.env.NODE_ENV || 'development']; //后台接口域名
- export {IMG_URL,upload_img,IMG_URL_SHARE}
-
-
-
- // const ENV_API_URL = {
- // development: 'http://localhost:8080', //开发环境
- // production: 'http://localhost:8080', //生产环境
- // }
- // const IMG_URL_SHARE = 'http://localhost:8080' // 图片公用路径
- // const IMG_URL = 'http://localhost:8080' // 图片公用路径
- // const upload_img = 'http://localhost:8080' // 本地上传图片路径
- // export const API_URL = ENV_API_URL[process.env.NODE_ENV || 'development']; //后台接口域名
- // export {IMG_URL,upload_img,IMG_URL_SHARE}
|