fix: open web devices via direct forwarder

This commit is contained in:
Yoilun
2026-05-09 13:58:16 +08:00
parent ea618fd674
commit ad3ce707f5
2 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ services:
MANAGED_PORTAL_REGISTRY_PATH: "/app/managed_services.yaml" MANAGED_PORTAL_REGISTRY_PATH: "/app/managed_services.yaml"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
ports:
- "31000-31255:31000-31255"
networks: networks:
- managed-portal - managed-portal

View File

@@ -99,7 +99,7 @@ async function handleScan() {
} }
function openDevice(row) { function openDevice(row) {
const url = row?.proxy_url || row?.direct_url; const url = row?.direct_url || row?.proxy_url;
if (!url) { if (!url) {
ElMessage.error("设备打开地址无效"); ElMessage.error("设备打开地址无效");
return; return;