diff --git a/src/views/secondHandCar/forSale.vue b/src/views/secondHandCar/forSale.vue index 0413ab1d..e7c99cbc 100644 --- a/src/views/secondHandCar/forSale.vue +++ b/src/views/secondHandCar/forSale.vue @@ -144,6 +144,7 @@ export default { document.addEventListener('visibilitychange', async ( ) => { let state = document.visibilityState if (state == 'hidden') { // 用户离开了 + console.log("用户离开了") this.getDuration() } }); diff --git a/src/views/secondHandCar/wantBuySale.vue b/src/views/secondHandCar/wantBuySale.vue index 79dec68d..ffedffd7 100644 --- a/src/views/secondHandCar/wantBuySale.vue +++ b/src/views/secondHandCar/wantBuySale.vue @@ -88,6 +88,7 @@ export default { document.addEventListener('visibilitychange', async ( ) => { let state = document.visibilityState if (state == 'hidden') { // 用户离开了 + console.log("用户离开了") this.getDuration() } });