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