From 80fa503aafe1c864c330a02127b53c7b1077fef7 Mon Sep 17 00:00:00 2001 From: chenrui <1950717904@qq.com> Date: Mon, 4 Nov 2024 17:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=AB=E7=A0=81=E5=85=A5?= =?UTF-8?q?=E4=BC=81=E6=89=AB=E7=A0=81=E5=8A=9F=E8=83=BD=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E5=B8=82=E7=9B=91=E4=BA=8C=E7=BB=B4=E7=A0=81=20=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=88=86=E6=9E=90=E9=A1=B5=E9=9D=A2=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/common/analyse.vue | 3 ++- src/views/enforce/scanQrCode.vue | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/common/analyse.vue b/src/views/common/analyse.vue index f2b38f2..0965037 100644 --- a/src/views/common/analyse.vue +++ b/src/views/common/analyse.vue @@ -345,7 +345,8 @@ onBeforeUnmount(() => { // 当前路由不是首页,且用户确认离开时 - router.replace('/enforceHome'); // 替换到首页 + // 替换到首页 + router.replace('/enforceHome'); }); onUnmounted(() => { diff --git a/src/views/enforce/scanQrCode.vue b/src/views/enforce/scanQrCode.vue index 442e680..e02db04 100644 --- a/src/views/enforce/scanQrCode.vue +++ b/src/views/enforce/scanQrCode.vue @@ -163,8 +163,9 @@ console.log("=========== 扫码返回 ===========") console.log(res) //TODO 判断是否是市监 - if(isHttpLink(res)){ - getEnterpriseInfoBySj({"url":res},success =>{ + if(isHttpLink(res.resultStr)){ + + getEnterpriseInfoBySj({"url":res.resultStr},success =>{ if (success.success) { router.push({ path: "/enterpriseScanPreview", @@ -180,6 +181,7 @@ }) } },error =>{}) + }else{ const scanObj = JSON.parse(res.resultStr); // 判断二维码是否过期, 如果已过期则跳转提示页 @@ -288,7 +290,6 @@ const isHttpLink = (url) =>{