Ver código fonte

fix(SCRM-4919): Incident - 会员无法使用停车缴费功能提示未找到资源

john 1 ano atrás
pai
commit
e6a06c0f42
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      src/main.js
  2. 1 1
      src/utils/index.js

+ 1 - 1
src/main.js

@@ -5,7 +5,7 @@ import VConsole from 'vconsole';
 
 // 或者使用配置参数来初始化,详情见文档
 // 开发环境和qa环境 打开debug
-const debug = /dev-t?-?|qa-t?-?|sl-t?-?|808[0-9]/.test(window.location.href);
+const debug = /dev-t?-?|qa-t?-?|sl-t?-?/.test(window.location.href);
 if (debug) {
   window.vConsole = new VConsole(
     // { theme: 'dark' }

+ 1 - 1
src/utils/index.js

@@ -182,7 +182,7 @@ export function wxToLoginCallback( path,callback ) {
 export function initEnv() {
   const href = window.location.href;
   console.log('当前页面的url地址  ',href);
-  if ( /dev-|808[0-9]/.test(href) ) {
+  if ( /dev-/.test(href) ) {
     window.env = 'qa';
     window.profileApi = 'https://qa-apim.kerryplus.com/c/api';
     window.cmrApi = 'https://qa-crm.kerryplus.com/xcrm-api/api';