音视频注释onHide生命周期

This commit is contained in:
nisen
2023-11-21 14:58:39 +08:00
parent 1f635ae528
commit 941de8ffc7

View File

@@ -558,8 +558,9 @@
},
onHide(){
//清除定时任务
this.clearTimeHandle();
//清除定时任务,隐藏的时候不清除,因为没有停止播放
// this.clearTimeHandle();
console.log('触发onHide');
},
destroyed() {
this.clearTimeHandle();