升级:VitePress 版本升级为 v1.0.0-alpha.8

This commit is contained in:
2022-08-18 11:22:44 +08:00
parent a63bc6bc13
commit 4967b49430
12 changed files with 227 additions and 233 deletions

View File

@@ -43,7 +43,7 @@ const { theme, frontmatter } = useData()
const data = reactive({
author: frontmatter.value?.author ?? theme.value.articleMetadataConfig.author,
authorLink: frontmatter.value?.authorLink ?? theme.value.articleMetadataConfig.authorLink,
articleLink: decodeURI(location.href)
articleLink: decodeURI(window.location.href)
})
const { author, authorLink, articleLink } = toRefs(data)
</script>