|
@@ -5,8 +5,18 @@ if (process.env.NODE_ENV === "development") {
|
|
|
} else {
|
|
} else {
|
|
|
// 生产环境
|
|
// 生产环境
|
|
|
//APP_SERVER_URL = 'http://cloud.jeeplus.org/api'
|
|
//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";
|
|
|
|
|
|
|
+ // 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;
|
|
APP_SERVER_URL = APP_SERVER_URL;
|