Merge remote-tracking branch 'origin/master'

This commit is contained in:
2025-04-02 20:00:04 +08:00
2 changed files with 10 additions and 3 deletions

View File

@@ -87,7 +87,7 @@
import trafficJam from './traffic-jam'
import { getPreviewUrlApi } from '@/api/home'
import { useMap } from '@/hooks/map'
import pubSub from 'pubsub-js'
import { getRouterListApi, getRoutersApi,getRoutersMapApi } from '@/api/traffic'
import mapIcon from '@/assets/images/map-video.png'
const { map, initMap,addMarker,marker } = useMap()
@@ -145,7 +145,12 @@
immediate: true
}
)
const onVideoCollect = () => {
pubSub.subscribe('videoCollect', () => {
// clearHlsRefs()
getRoutersMap()
})
}
const getPreviewUrl = async (code) => {
let res = await getPreviewUrlApi({
cameraIndexCode: code,
@@ -184,6 +189,7 @@
getRouterList()
getRouters()
getRoutersMap()
onVideoCollect()
})
</script>