Commit 6c947e5d authored by fanxuehui's avatar fanxuehui

fix:

parent 0ea00e76
...@@ -21,6 +21,7 @@ class Monitor { ...@@ -21,6 +21,7 @@ class Monitor {
log, log,
}, },
}); });
this.initialized = true;
this.reset(); this.reset();
this.record(); this.record();
} else { } else {
...@@ -53,6 +54,7 @@ class Monitor { ...@@ -53,6 +54,7 @@ class Monitor {
if (this.listenedRoute) return; if (this.listenedRoute) return;
let timer = null; let timer = null;
let preHash = ""; let preHash = "";
this.listenedRoute = true;
window.addEventListener("hashchange", () => { window.addEventListener("hashchange", () => {
// 忽略hash后的query // 忽略hash后的query
let hash = getPureHash(location.hash); let hash = getPureHash(location.hash);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment