|
@@ -182,15 +182,15 @@ export function wxToLoginCallback( path,callback ) {
|
|
|
export function initEnv() {
|
|
|
const origin = window.location.origin;
|
|
|
console.log('当前页面的url地址 ',origin);
|
|
|
- if (origin.indexOf('http://127.0.0.1') > -1 || origin.indexOf('http://localhost:') > -1) {
|
|
|
- window.env = 'qa';
|
|
|
- window.profileApi = 'https://qa-apim.kerryplus.com/c/api';
|
|
|
- window.cmrApi = 'https://qa-crm.kerryplus.com/xcrm-api/api';
|
|
|
- window.api = 'qaApi';
|
|
|
- // window.env = 'dev';
|
|
|
- // window.profileApi = 'https://dev-gateway-kip.kerryonvip.com/api';
|
|
|
- // window.cmrApi = 'https://dev-crm.kerryplus.com/xcrm-api/api';
|
|
|
- // window.api = 'devApi';
|
|
|
+ if ( origin.indexOf('https://dev-') > -1 || origin.indexOf('http://127.0.0.1') > -1 || origin.indexOf('http://localhost:') > -1) {
|
|
|
+ // window.env = 'qa';
|
|
|
+ // window.profileApi = 'https://qa-apim.kerryplus.com/c/api';
|
|
|
+ // window.cmrApi = 'https://qa-crm.kerryplus.com/xcrm-api/api';
|
|
|
+ // window.api = 'qaApi';
|
|
|
+ window.env = 'dev';
|
|
|
+ window.profileApi = 'https://dev-gateway-kip.kerryonvip.com/api';
|
|
|
+ window.cmrApi = 'https://dev-crm.kerryplus.com/xcrm-api/api';
|
|
|
+ window.api = 'devApi';
|
|
|
// window.env = 'prod';
|
|
|
// window.profileApi = 'https://sl-apim.kerryplus.com/c/api';
|
|
|
// window.cmrApi = 'https://sl-crm.kerryplus.com/xcrm-api/api';
|