修复:app/stream 填充默认值 default/001,不再用 cameraName 覆盖
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user