fix: v1.11.1 - 修复一些node版本不支持可选链操作符问题

This commit is contained in:
xugaoyi 2022-04-13 10:13:44 +08:00
parent 755e30211c
commit cdee77264d
3 changed files with 3 additions and 3 deletions

View File

@ -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"
}
}

View File

@ -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"

View File

@ -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]
}