fix: 修复https下无法访问网关远程控制
This commit is contained in:
parent
19d7fadfbe
commit
7b4fb484bf
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue