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; + } } }); }