diff --git a/internal/web/ui/templates/console.html b/internal/web/ui/templates/console.html index d8243af..4b673ed 100644 --- a/internal/web/ui/templates/console.html +++ b/internal/web/ui/templates/console.html @@ -241,14 +241,30 @@ } }); if (visible.length === 0) { alert('暂无未分配视频源'); return; } - var html = '
'; + box.querySelector('button').addEventListener('click',function(){overlay.remove()}); + overlay.appendChild(box); + document.body.appendChild(overlay); }; function addSourceToDeviceForm(deviceID, sourceName) { diff --git a/safesightd-linux-arm64 b/safesightd-linux-arm64 index 624cd9e..7a314cd 100644 Binary files a/safesightd-linux-arm64 and b/safesightd-linux-arm64 differ