|
@@ -170,12 +170,12 @@ export function initEnv() {
|
|
|
const href = window.location.href;
|
|
|
console.log('当前页面的url地址 ', href);
|
|
|
if (/dev-|8080/.test(href)) {
|
|
|
- // window.env = 'qa';
|
|
|
- // window.profileApi = 'https://qa-apim.kerryplus.com/c/api';
|
|
|
- // window.api = 'qaApi';
|
|
|
- window.env = 'dev';
|
|
|
+ window.env = 'qa';
|
|
|
+ window.profileApi = 'https://qa-apim.kerryplus.com/c/api';
|
|
|
+ window.api = 'qaApi';
|
|
|
+ /*window.env = 'dev';
|
|
|
window.profileApi = 'https://dev-gateway-kip.kerryonvip.com/api';
|
|
|
- window.api = 'devApi';
|
|
|
+ window.api = 'devApi'; */
|
|
|
return;
|
|
|
}
|
|
|
if (/qa-/.test(href)) {
|
|
@@ -191,9 +191,9 @@ export function initEnv() {
|
|
|
|
|
|
export function requestInit() {
|
|
|
let baseURL = window.profileApi + '/temporary-parking/v1';
|
|
|
- if (window.location.href.indexOf('parking.') < 0) {
|
|
|
- baseURL = '/msApi';
|
|
|
- }
|
|
|
+ // if (window.location.href.indexOf('parking.') < 0) {
|
|
|
+ // baseURL = '/msApi';
|
|
|
+ // }
|
|
|
window.requestms = createAxiosByinterceptors({
|
|
|
// baseURL: `https://dev-kip-service-internal.kerryonvip.com/`,
|
|
|
// baseURL: `http://tp.hht.test/`,
|