增加页面跳转统计
This commit is contained in:
@@ -1306,8 +1306,13 @@ const handleItem = (uni) => {
|
||||
// 修改 url
|
||||
const replaceState = (uni) => {
|
||||
if (typeof window === "undefined") return;
|
||||
const location = JSON.parse(JSON.stringify(window.location));
|
||||
// 替换当前URL,但不刷新页面
|
||||
window.history.pushState({}, "", `${window.location.origin}/details/${uni}`);
|
||||
|
||||
console.log("uni",uni,"location",location);
|
||||
|
||||
if (location.pathname.indexOf(uni) == -1) XSTAT.trackNewPage();
|
||||
};
|
||||
|
||||
let reportAlertShow = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user