二手车交易,用户离开记录浏览量

This commit is contained in:
2025-03-18 21:21:00 +08:00
parent b6d0ae476c
commit fe71adf6e3
2 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ export default {
document.addEventListener('visibilitychange', async ( ) => {
let state = document.visibilityState
if (state == 'hidden') { // 用户离开了
console.log("用户离开了")
this.getDuration()
}
});

View File

@ -88,6 +88,7 @@ export default {
document.addEventListener('visibilitychange', async ( ) => {
let state = document.visibilityState
if (state == 'hidden') { // 用户离开了
console.log("用户离开了")
this.getDuration()
}
});