mirror of
https://gitee.com/dromara/go-view.git
synced 2025-06-30 08:39:15 +08:00
feat: 修复告警视频bug
This commit is contained in:
parent
0f06f45d3a
commit
5d748f6d3f
@ -199,9 +199,7 @@ const getVideos = (ids: number[], alarmIds: number[]) => {
|
|||||||
if(!res?.data) return
|
if(!res?.data) return
|
||||||
let arr:any = []
|
let arr:any = []
|
||||||
ids.forEach(id => {
|
ids.forEach(id => {
|
||||||
if(typeof id === 'number') {
|
if(id) arr.push(res.data[id] ? res.data[id][0] : null)
|
||||||
arr.push(res.data[id] ? res.data[id][0] : null)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
alarmVideos.value = arr.concat()
|
alarmVideos.value = arr.concat()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user