<script lang="ts">
import { watch } from 'vue';
import { useDocumentVisibility } from "v3hooks";
export default {
setup() {
const documentVisibility = useDocumentVisibility();
watch(
documentVisibility,
(value)=>{
if(value) console.log('重新触发active')
}
)
}
};
</script>
const useDocumentVisibility: () => Ref<boolean>;