feat: 告警增加摄像头弹窗

This commit is contained in:
huanghao1412 2024-04-12 15:23:12 +08:00
parent db5fd25c1d
commit 336d4a12d4

View File

@ -224,9 +224,22 @@ const getVideos = (ids: number[]) => {
}
const showVideo = (obj: any) => {
let a: {[k: string]: '' | null | boolean} = {
ip: '',
port: null,
account: '',
password: '',
channel: '',
brand: '',
plugin: '',
}
for(let k in a) {
a[k] = obj[k]
}
a.showForce = true
postMessageToParent({
type: 'openVideoV2',
data: obj
data: a
})
}