From 83f4642c58c77f46d1502a78269743555624fcb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 1 Mar 2024 19:18:15 +0800 Subject: [PATCH] fix:url --- docs/.vitepress/config.mts | 4 ++-- docs/en-US/index.md | 2 +- docs/index.md | 2 +- docs/zh-CN/index.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index d9f9661..c4b523b 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -8,12 +8,12 @@ export default defineConfig({ '/zh-CN/': { label: "简体中文", lang: "zh-CN", - link: '/zh-CN/' + link: $withBase('/zh-CN/') }, '/en-US/': { label: 'English', lang: 'en-us', - link: '/en-US/' + link: $withBase('/en-US/') } }, themeConfig: { diff --git a/docs/en-US/index.md b/docs/en-US/index.md index 8c90b13..dc7b5f8 100644 --- a/docs/en-US/index.md +++ b/docs/en-US/index.md @@ -8,7 +8,7 @@ hero: actions: - theme: brand text: Start - link: /en-US/guide/getting-started + link: $withBase('/en-US/guide/getting-started') - theme: alt text: Github link: https://github.com/LLOneBot/LLOneBot diff --git a/docs/index.md b/docs/index.md index b602305..db78d55 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,7 +8,7 @@ page: true if (typeof window !== 'undefined') { const preferredLang = 'zh-CN' - window.location.pathname = `/${preferredLang}/` + window.location.pathname = $withBase(`/${preferredLang}/`) } diff --git a/docs/zh-CN/index.md b/docs/zh-CN/index.md index c1a9797..322e440 100644 --- a/docs/zh-CN/index.md +++ b/docs/zh-CN/index.md @@ -8,7 +8,7 @@ hero: actions: - theme: brand text: 快速开始 - link: /zh-CN/guide/getting-started + link: $withBase('/zh-CN/guide/getting-started') - theme: alt text: Github link: https://github.com/LLOneBot/LLOneBot