diff --git a/package.json b/package.json index ef03f4c..2d35387 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "quark-doc-header", - "version": "0.3.18", + "version": "0.3.19", "keywords": [ "frontend", "quark", diff --git a/src/index.tsx b/src/index.tsx index 90b3f57..efda448 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -141,6 +141,14 @@ class MyComponent extends QuarkElement { this._quarkcLogoSwitch() this.githubUrl = 'https://github.com/hellof2e/quark' } + + window.addEventListener( + "hashchange", + () => { + console.log("The hash has changed!"); + }, + false + ); } // quark design 各类技术文档logo切换