|
@@ -205,9 +205,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/`,
|
|
@@ -219,7 +219,7 @@ export function requestInit() {
|
|
|
|
|
|
// websocket 链接
|
|
|
export function getUrl() {
|
|
|
- // return `https://crm.kerryplus.com/xcrm-api`; // TODO: 临时更改websocket域名为prod
|
|
|
+ return `https://crm.kerryplus.com/xcrm-api`; // TODO: 临时更改websocket域名为prod
|
|
|
// 如果 kerry+ 这边的访问环境是 sl 或者 lt,需要把 wss 指向 qa 环境。
|
|
|
const href = `${ window.location.href }`;
|
|
|
if ( /dev-|8080/.test(href) ) {
|