Skip to content

Commit

Permalink
fix: 修正 releaseTagName 取不到导致前端显示 undefined 的问题 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowings-zy authored Jul 8, 2021
1 parent e9627ba commit f94bd91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .vitepress/theme/fetchReleaseTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
})
}

0 comments on commit f94bd91

Please sign in to comment.