From 7332ff5f1ea037914e44affb4cb0ac97322fbe0c Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Thu, 19 Mar 2026 11:49:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9Aapp/stream=20?= =?UTF-8?q?=E5=A1=AB=E5=85=85=E9=BB=98=E8=AE=A4=E5=80=BC=20default/001?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=86=8D=E7=94=A8=20cameraName=20=E8=A6=86?= =?UTF-8?q?=E7=9B=96?= 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 | 10 +++------- 1 file changed, 3 insertions(+), 7 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 806f82567..60b8bc6b4 100644 --- a/apps/web-antd/src/views/aiot/device/camera/index.vue +++ b/apps/web-antd/src/views/aiot/device/camera/index.vue @@ -267,13 +267,9 @@ async function handleSave() { message.warning('请输入拉流地址'); return; } - // app/stream 由后端处理,前端如果没填则用 cameraName 作为 app - if (!editForm.app?.trim()) { - editForm.app = editForm.cameraName!.trim(); - } - if (!editForm.stream?.trim()) { - editForm.stream = '001'; - } + // app/stream 为 ZLM 内部字段,自动填充默认值即可 + if (!editForm.app) editForm.app = 'default'; + if (!editForm.stream) editForm.stream = '001'; saving.value = true; try { await saveCamera({ ...editForm });