From 2e0efc7c8c80dc0a304fafb2e1c9af1b87f46370 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Wed, 25 Feb 2026 14:14:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(aiot):=20=E4=BF=AE=E6=94=B9=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=90=8D=E6=97=B6=E8=87=AA=E5=8A=A8=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=88=86=E9=85=8D=E6=B5=81ID=EF=BC=8C=E4=BB=8E001=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E6=8C=89=E5=BA=8F=E5=88=86=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/aiot/device/camera/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/web-antd/src/views/aiot/device/camera/index.vue b/apps/web-antd/src/views/aiot/device/camera/index.vue index 69e812f09..ba24c59dd 100644 --- a/apps/web-antd/src/views/aiot/device/camera/index.vue +++ b/apps/web-antd/src/views/aiot/device/camera/index.vue @@ -184,10 +184,12 @@ function resetForm() { */ function autoFillStreamId() { const app = editForm.app; - if (!app || editForm.id) return; // 编辑模式不自动填充 + if (!app) return; - // 过滤出同一应用下的摄像头 - const sameAppCameras = cameraList.value.filter((c) => c.app === app); + // 过滤出同一应用下的摄像头(排除当前编辑的摄像头) + const sameAppCameras = cameraList.value.filter( + (c) => c.app === app && c.id !== editForm.id, + ); // 获取已用的纯数字编号 const usedNumbers = sameAppCameras @@ -522,10 +524,9 @@ onMounted(() => {