From 7b4fb484bfc54c4bb53f1fd25bcd08ed672910f9 Mon Sep 17 00:00:00 2001 From: xieyonghong <18010623010@163.com> Date: Mon, 15 May 2023 15:40:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dhttps=E4=B8=8B?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AE=BF=E9=97=AE=E7=BD=91=E5=85=B3=E8=BF=9C?= =?UTF-8?q?=E7=A8=8B=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/edge/Device/Remote/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/edge/Device/Remote/index.vue b/src/views/edge/Device/Remote/index.vue index 6080be00..28ec51ed 100644 --- a/src/views/edge/Device/Remote/index.vue +++ b/src/views/edge/Device/Remote/index.vue @@ -20,7 +20,8 @@ watch( deviceId.value = newId as string; _control(newId).then((resp: any) => { if (resp.status === 200) { - const item = `http://${resp.result?.url}/#/login?token=${resp.result.token}`; + const protocol = location.protocol + const item = `${protocol}//${resp.result?.url}/#/login?token=${resp.result.token}`; url.value = item; } });