|
@@ -238,8 +238,8 @@ export default class VideoOverview extends Vue {
|
|
|
}
|
|
|
}
|
|
|
@Watch('cameraDataSourceList')
|
|
|
- onCamearDsChange() {
|
|
|
- if (this.cameraDataSourceList.length == this.cameraList.length) {
|
|
|
+ onCamearDsChange(val) {
|
|
|
+ if (val.length == this.cameraList.length && this.cameraDataSourceList.length != 0) {
|
|
|
this.changeShowType()
|
|
|
}
|
|
|
}
|
|
@@ -248,6 +248,7 @@ export default class VideoOverview extends Vue {
|
|
|
}
|
|
|
@Watch('mapView', { immediate: true })
|
|
|
onChangeMethod(val) {
|
|
|
+ if (!val) return
|
|
|
this.debounce(() => {
|
|
|
this.currentZoomLevel = this.mapView.getView().getZoom()
|
|
|
this.getCameraType()
|