Przeglądaj źródła

2023-03-23 14:41:44

john 2 lat temu
rodzic
commit
85bf60d7e9
1 zmienionych plików z 8 dodań i 8 usunięć
  1. 8 8
      src/utils/index.js

+ 8 - 8
src/utils/index.js

@@ -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/`,