Commit 1941bde1 authored by chenqikuai's avatar chenqikuai

fix

parent 525b054f
...@@ -175,8 +175,10 @@ export default defineComponent({ ...@@ -175,8 +175,10 @@ export default defineComponent({
}, },
onVisibilityChange() { onVisibilityChange() {
if (hiddenProperty && !(document as any)[(<string>hiddenProperty)]) { if (hiddenProperty && !(document as any)[(<string>hiddenProperty)]) {
console.log('进入页面');
this.startGettingLiveRoom(); this.startGettingLiveRoom();
} else { } else {
console.log('离开页面');
clearInterval(this.intervalId) clearInterval(this.intervalId)
} }
}, },
......
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