Revert "功能:摄像头页面增加区域选择器"

This reverts commit 84ec762d09.
This commit is contained in:
2026-03-23 17:02:30 +08:00
parent 84ec762d09
commit 5182e81429
3 changed files with 1 additions and 70 deletions

View File

@@ -45,7 +45,6 @@ export namespace AiotDeviceApi {
mediaServerId?: string;
streamKey?: string;
createTime?: string;
areaId?: number; // 所属区域ID
}
/** ROI 区域 */
@@ -300,15 +299,3 @@ export async function getAlertImageUrl(imagePath: string): Promise<string> {
`&access-token=${encodeURIComponent(token)}`
);
}
// ==================== 区域列表 ====================
/** 获取区域列表(从 IoT 平台代理查询) */
export async function getAreaList(): Promise<
{ id: number; areaName: string; parentId?: number }[]
> {
const resp = await fetch(`${apiURL}/api/area/list`);
const json = await resp.json();
if (json.code === 0) return json.data || [];
return [];
}