Commit daf9d15b by qlintonger xeno

删除内容+2

parent 3fc5e8ea
...@@ -82,7 +82,7 @@ const checkVideoExists = () => { ...@@ -82,7 +82,7 @@ const checkVideoExists = () => {
const video = remoteVideoRef.value.querySelector('video') const video = remoteVideoRef.value.querySelector('video')
isVideoVisible.value = !!video isVideoVisible.value = !!video
} }
const observer = new MutationObserver(checkVideoExists) let observer: any = new MutationObserver(checkVideoExists)
onMounted(function () { onMounted(function () {
if (!ps.isSelf) { if (!ps.isSelf) {
AnyR?.agora.forceReplay(ps.id) AnyR?.agora.forceReplay(ps.id)
...@@ -97,6 +97,7 @@ onUpdated(function () { ...@@ -97,6 +97,7 @@ onUpdated(function () {
}) })
onUnmounted(() => { onUnmounted(() => {
observer.disconnect() // 停止监听 observer.disconnect() // 停止监听
observer = null;
}) })
</script> </script>
<style lang="less" scoped> <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