소스 검색

fix(SCRM-5888): 移除对dev的指向

john 1 년 전
부모
커밋
1df76239b4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/utils/index.js

+ 1 - 1
src/utils/index.js

@@ -183,7 +183,7 @@ export function wxToLoginCallback( path,callback ) {
 export function initEnv() {
   const origin = window.location.origin;
   console.log('当前页面的url地址  ',origin);
-  if ( origin.indexOf('https://dev-') > -1  || origin.indexOf('http://127.0.0.1') > -1 || origin.indexOf('http://localhost:') > -1) {
+  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';