机场直播和无人机直播快速开启和关闭时报错问题修改
parent
ffc56b708b
commit
2a98edf563
|
|
@ -154,8 +154,10 @@
|
||||||
};
|
};
|
||||||
// 销毁视频控件
|
// 销毁视频控件
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
if(player){
|
||||||
player.dispose();
|
player.dispose();
|
||||||
player = null;
|
player = null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
|
||||||
|
|
@ -286,8 +286,10 @@
|
||||||
};
|
};
|
||||||
// 销毁视频控件
|
// 销毁视频控件
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
if(player){
|
||||||
player.dispose();
|
player.dispose();
|
||||||
player = null;
|
player = null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue