|
@@ -71,7 +71,7 @@ export default defineComponent({
|
|
setup() {
|
|
setup() {
|
|
const pageVisibility = usePageVisibility()
|
|
const pageVisibility = usePageVisibility()
|
|
/** 页面显示和隐藏 */
|
|
/** 页面显示和隐藏 */
|
|
- watch(pageVisibility, (value) => {
|
|
|
|
|
|
+ watch(() => pageVisibility.value, (value) => {
|
|
if (value == 'hidden') {
|
|
if (value == 'hidden') {
|
|
handleStop()
|
|
handleStop()
|
|
}
|
|
}
|