Commit abbaed23 authored by aiduck's avatar aiduck

修改

parents 5f4768b1 6c947e5d
...@@ -52,6 +52,7 @@ class Monitor { ...@@ -52,6 +52,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