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 });