diff --git a/package.json b/package.json index 4cd8cd5..b20f943 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "vuepress-plugin-one-click-copy": "^1.0.2", "vuepress-plugin-thirdparty-search": "^1.0.2", "vuepress-plugin-zooming": "^1.1.7", - "vuepress-theme-vdoing": "^1.11.0", + "vuepress-theme-vdoing": "^1.11.1", "yamljs": "^0.3.0" } } diff --git a/vdoing/package.json b/vdoing/package.json index bdb8b74..c4e09e7 100644 --- a/vdoing/package.json +++ b/vdoing/package.json @@ -1,6 +1,6 @@ { "name": "vuepress-theme-vdoing", - "version": "1.11.0", + "version": "1.11.1", "description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。", "author": { "name": "gaoyi(Evan) Xu" diff --git a/vdoing/util/index.js b/vdoing/util/index.js index e5ba52b..34ef876 100644 --- a/vdoing/util/index.js +++ b/vdoing/util/index.js @@ -10,7 +10,7 @@ export function normalize(path) { } export function getHash(path) { - const match = path?.match(hashRE) + const match = path ? path.match(hashRE) : '' if (match) { return match[0] }