From 7f5996c18d712d87194f06dae91fee057f42762a Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Wed, 10 Apr 2024 16:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E6=B5=8B=E8=AF=95=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/peko/common/js/common2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/peko/common/js/common2.js b/view/peko/common/js/common2.js index bf67095..8fe2e42 100644 --- a/view/peko/common/js/common2.js +++ b/view/peko/common/js/common2.js @@ -66,8 +66,8 @@ function convert (_url) { // 根据域名适配环境 function EnvCheck () { - if (window.location.href) { - var _url = window.location.href; + if (window.location.host) { + var _url = window.location.host; var res = _url.match(/uat/); var res1 = _url.match(/120.79.211.243/); var res2 = _url.match(/192.168./)