| 123456789101112131415161718192021222324 |
- let APP_SERVER_URL = "";
- if (process.env.NODE_ENV === "development") {
- // 开发环境
- APP_SERVER_URL = "/api";
- } else {
- // 生产环境
- //APP_SERVER_URL = 'http://cloud.jeeplus.org/api'
- // APP_SERVER_URL = 'http://192.168.2.131/api'
- // APP_SERVER_URL = "http://cpaoa.xgccpm.com/api";
- const host = window.location.hostname;
- if (host === "xxx.com") {
- APP_SERVER_URL = "https://xxx.com/api";
- } else if (host === "xxx.com") {
- APP_SERVER_URL = "https://xxx.com/api";
- } else if (host === "xxx.com") {
- APP_SERVER_URL = "https://xxx.com/api";
- } else if (host === "xxx.com") {
- APP_SERVER_URL = "https://xxx.com/api";
- }
- }
- APP_SERVER_URL = APP_SERVER_URL;
- export default APP_SERVER_URL;
|