From f94bd9117d236aeb86a31e4bac360512c7fae380 Mon Sep 17 00:00:00 2001 From: shadowings-zy Date: Thu, 8 Jul 2021 18:10:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20releaseTagName=20?= =?UTF-8?q?=E5=8F=96=E4=B8=8D=E5=88=B0=E5=AF=BC=E8=87=B4=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20undefined=20=E7=9A=84=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?(#197)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/theme/fetchReleaseTag.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.vitepress/theme/fetchReleaseTag.js b/.vitepress/theme/fetchReleaseTag.js index 458e69d5..092d1899 100644 --- a/.vitepress/theme/fetchReleaseTag.js +++ b/.vitepress/theme/fetchReleaseTag.js @@ -13,8 +13,9 @@ export default function fetchReleaseTag() { const releaseTagName = json.tag_name docsReleaseTag.innerText = releaseTagName - - mainTitle.appendChild(docsReleaseTag) + if (releaseTagName !== undefined) { + mainTitle.appendChild(docsReleaseTag) + } }) }) }