From cdee77264d1e926d002a03efa3f56d523220d0d7 Mon Sep 17 00:00:00 2001 From: xugaoyi <894072666@qq.com> Date: Wed, 13 Apr 2022 10:13:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20v1.11.1=20-=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=80=E4=BA=9Bnode=E7=89=88=E6=9C=AC=E4=B8=8D=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=8F=AF=E9=80=89=E9=93=BE=E6=93=8D=E4=BD=9C=E7=AC=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- vdoing/package.json | 2 +- vdoing/util/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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] }