二手车交易,用户离开记录浏览量
This commit is contained in:
@ -144,6 +144,7 @@ export default {
|
|||||||
document.addEventListener('visibilitychange', async ( ) => {
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
let state = document.visibilityState
|
let state = document.visibilityState
|
||||||
if (state == 'hidden') { // 用户离开了
|
if (state == 'hidden') { // 用户离开了
|
||||||
|
console.log("用户离开了")
|
||||||
this.getDuration()
|
this.getDuration()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -88,6 +88,7 @@ export default {
|
|||||||
document.addEventListener('visibilitychange', async ( ) => {
|
document.addEventListener('visibilitychange', async ( ) => {
|
||||||
let state = document.visibilityState
|
let state = document.visibilityState
|
||||||
if (state == 'hidden') { // 用户离开了
|
if (state == 'hidden') { // 用户离开了
|
||||||
|
console.log("用户离开了")
|
||||||
this.getDuration()
|
this.getDuration()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user