Commit daf9d15b by qlintonger xeno

删除内容+2

parent 3fc5e8ea
......@@ -82,7 +82,7 @@ const checkVideoExists = () => {
const video = remoteVideoRef.value.querySelector('video')
isVideoVisible.value = !!video
}
const observer = new MutationObserver(checkVideoExists)
let observer: any = new MutationObserver(checkVideoExists)
onMounted(function () {
if (!ps.isSelf) {
AnyR?.agora.forceReplay(ps.id)
......@@ -97,6 +97,7 @@ onUpdated(function () {
})
onUnmounted(() => {
observer.disconnect() // 停止监听
observer = null;
})
</script>
<style lang="less" scoped>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment