diff --git a/docs/.vitepress/config/markdown.ts b/docs/.vitepress/config/markdown.ts
index 5637ff3b9..aecb0c79f 100644
--- a/docs/.vitepress/config/markdown.ts
+++ b/docs/.vitepress/config/markdown.ts
@@ -12,7 +12,7 @@ export const markdown: MarkdownOptions = {
config: (md) => {
md.renderer.rules.heading_close = (tokens, idx, options, env, slf) => {
let htmlResult = slf.renderToken(tokens, idx, options, env, slf)
- if (tokens[idx].tag === 'h1') htmlResult += `\n`
+ if (tokens[idx].tag === 'h1') htmlResult += `\n`
return htmlResult
}
}
diff --git a/docs/.vitepress/theme/MyLayout.vue b/docs/.vitepress/theme/MyLayout.vue
index 2303d8dd5..575f80feb 100644
--- a/docs/.vitepress/theme/MyLayout.vue
+++ b/docs/.vitepress/theme/MyLayout.vue
@@ -1,7 +1,9 @@
-
+
+
+
diff --git a/docs/.vitepress/theme/components/Comment.vue b/docs/.vitepress/theme/components/Comment.vue
index 7eea3d5f6..1ec51f276 100644
--- a/docs/.vitepress/theme/components/Comment.vue
+++ b/docs/.vitepress/theme/components/Comment.vue
@@ -48,7 +48,7 @@ onMounted(() => {
// 如果点赞,先判断有没有登录
let $gc = $('#comment-container');
$gc.on('click', '.gt-comment-like', function () {
- if (!localStorage.getItem('GT_ACCESS_TOKEN')) {
+ if (!window.localStorage.getItem('GT_ACCESS_TOKEN')) {
Message.warning({
content:'点赞前,请您先进行登录',
closable: true
diff --git a/docs/.vitepress/theme/components/Copyright.vue b/docs/.vitepress/theme/components/Copyright.vue
index 6a8662b51..a90f74918 100644
--- a/docs/.vitepress/theme/components/Copyright.vue
+++ b/docs/.vitepress/theme/components/Copyright.vue
@@ -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)
diff --git a/docs/.vitepress/theme/components/Footer.vue b/docs/.vitepress/theme/components/Footer.vue
index b04154fcc..be31b8159 100644
--- a/docs/.vitepress/theme/components/Footer.vue
+++ b/docs/.vitepress/theme/components/Footer.vue
@@ -1,7 +1,7 @@
diff --git a/docs/.vitepress/theme/components/WordCloud.vue b/docs/.vitepress/theme/components/WordCloud.vue
index c185f069b..437347722 100644
--- a/docs/.vitepress/theme/components/WordCloud.vue
+++ b/docs/.vitepress/theme/components/WordCloud.vue
@@ -3,9 +3,8 @@