feat 直播状态更换

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-05-29 11:57:50 +08:00
parent d1ed96b8fc
commit 4b7ed6f727

View File

@@ -624,9 +624,27 @@ const clearImage = () => {
const saveImage = async () => {
console.log('[保存区域] 准备保存的报警区域列表', payload.value);
await drawInfo(payload.value);
drawStart.value = false;
try {
const response = await drawInfo(payload.value);
proxy?.$modal.msgSuccess('保存成功');
console.log('[保存区域] 保存结果', response);
seeSee.value = 0;
dialog1.visible = false;
//重新获取数据
await getList();
} catch (error) {
proxy?.$modal.msgSuccess('保存成功, 请联系管理员');
console.error('[保存区域] 保存失败', error);
}
};
const handleMonitorDialogOpen = () => {
// 初始化 Hls 与 video
initHls();
initVideoResizeObserver();
monitorDrawCollecting.value = false;
monitorDrawPoints.value = [];
monitorRectPx.value = null;
};
/** 删除按钮操作 */