From bfff1c3215925e142c040a2b38270947fac3dac7 Mon Sep 17 00:00:00 2001 From: qiaochuLei <124648559+qiaochuLei@users.noreply.github.com> Date: Thu, 17 Aug 2023 18:14:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BD=91=E5=85=B3=E8=AE=BE=E5=A4=87-?= =?UTF-8?q?=E8=BF=9C=E7=A8=8B=E6=8E=A7=E5=88=B6=E5=85=BC=E5=AE=B9https?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: bug网关设备跳转 * fix: bug网关设备跳转 --- src/views/edge/Device/Remote/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/edge/Device/Remote/index.vue b/src/views/edge/Device/Remote/index.vue index 28ec51ed..6d59508b 100644 --- a/src/views/edge/Device/Remote/index.vue +++ b/src/views/edge/Device/Remote/index.vue @@ -20,9 +20,12 @@ watch( deviceId.value = newId as string; _control(newId).then((resp: any) => { if (resp.status === 200) { - const protocol = location.protocol - const item = `${protocol}//${resp.result?.url}/#/login?token=${resp.result.token}`; - url.value = item; + const item = `http://${resp.result?.url}/#/login?token=${resp.result.token}`; + if(window.location.protocol === 'https:' && item){ + window.open(item) + }else{ + url.value = item; + } } }); }