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