监听页面显示1
This commit is contained in:
@ -84,7 +84,7 @@ export default {
|
|||||||
// this.onRefresh();
|
// this.onRefresh();
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
||||||
document.addEventListener('visibilitychange', async ( e ) => {
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
console.log('document.visibilityState', document.visibilityState);
|
console.log('document.visibilityState', document.visibilityState);
|
||||||
let state = document.visibilityState
|
let state = document.visibilityState
|
||||||
if (state == 'hidden') { // 用户离开了
|
if (state == 'hidden') { // 用户离开了
|
||||||
|
Reference in New Issue
Block a user