fix(docs): logo link (#7133)

This commit is contained in:
三咲智子
2022-04-13 18:46:24 +08:00
committed by GitHub
parent dbebca623b
commit 896d8e7fe0

View File

@@ -21,7 +21,7 @@ const { theme, page } = useData()
const currentLink = computed(() => {
if (!inBrowser) {
return `/${page.value?.frontmatter?.lang || ''}`
return `/${page.value?.frontmatter?.lang || ''}/`
}
const existLangIndex = theme.value.langs.findIndex((lang) =>
window?.location?.pathname.startsWith(`/${lang}`)