|
@ -126,13 +126,10 @@ export function useProjectTracking(projectRoutes) { |
|
|
// console.log('在 searchCode.html 页面,不发送数据')
|
|
|
// console.log('在 searchCode.html 页面,不发送数据')
|
|
|
// return
|
|
|
// return
|
|
|
// }
|
|
|
// }
|
|
|
const isRefresh = |
|
|
|
|
|
performance.navigation?.type === 1 || |
|
|
|
|
|
performance.getEntriesByType("navigation")[0]?.type === "reload"; |
|
|
|
|
|
if (isRefresh) { |
|
|
|
|
|
console.log("页面刷新,不触发数据发送"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (isPageRefreshing) { |
|
|
|
|
|
console.log('页面刷新,不触发数据发送') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
console.log("页面即将关闭或跳转"); |
|
|
console.log("页面即将关闭或跳转"); |
|
|
sendTrackingData(); |
|
|
sendTrackingData(); |
|
|