From bd1c032e778c62ea11200c65a0623a4bca2ec6a7 Mon Sep 17 00:00:00 2001 From: wuming230 <1819845645@qq.com> Date: Wed, 12 Mar 2025 18:16:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=9D=A2=E5=8C=85?= =?UTF-8?q?=E5=B1=91=E7=82=B9=E5=87=BB=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/src/components/DocBreadCrumb.vue | 10 +++++----- docs/.vitepress/src/views/search/TheSearchResult.vue | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/.vitepress/src/components/DocBreadCrumb.vue b/docs/.vitepress/src/components/DocBreadCrumb.vue index 7c889db..0920a77 100644 --- a/docs/.vitepress/src/components/DocBreadCrumb.vue +++ b/docs/.vitepress/src/components/DocBreadCrumb.vue @@ -12,7 +12,7 @@ import { useLocale } from '@/composables/useLocale'; const route = useRoute(); const searchStore = useSearchingStore(); -const { t } = useLocale(); +const { t, locale } = useLocale(); const props = defineProps({ // 文档模块 @@ -44,8 +44,8 @@ const moduleNode = computed(() => { // 是否是贡献指南手册,直接显示 文档中心 > 贡献指南的具体章节 const isContribute = computed(() => { const pathHref = route.path.replace('.html', ''); - return pathHref.includes('/zh/contribute') || pathHref.includes('/en/contribute'); -}) + return pathHref.includes('/zh/contribute') || pathHref.includes('/en/contribute'); +}); // -------------------- 当前节点标题 -------------------- const currentTitle = computed(() => { @@ -83,7 +83,7 @@ const goToPage = (href: string) => { - 文档中心 + 文档中心 {{ moduleNode.title }} {{ moduleNode.title }} @@ -105,6 +105,6 @@ const goToPage = (href: string) => { --breadcrumb-color-hover: var(--o-color-primary1); --breadcrumb-color-active: var(--o-color-primary1); --breadcrumb-color-selected: var(--o-color-primary1); - } + } } diff --git a/docs/.vitepress/src/views/search/TheSearchResult.vue b/docs/.vitepress/src/views/search/TheSearchResult.vue index 7fd561a..fe2c355 100644 --- a/docs/.vitepress/src/views/search/TheSearchResult.vue +++ b/docs/.vitepress/src/views/search/TheSearchResult.vue @@ -182,7 +182,7 @@ const goToPage = (href: string) => { - 文档中心 + 文档中心 {{ moduleNode.label }} {{ node.label }} @@ -356,6 +356,6 @@ const goToPage = (href: string) => { } :deep(.o-breadcrumb) { - --breadcrumb-color-selected: var(--o-color-info3) + --breadcrumb-color-selected: var(--o-color-info3); } -- Gitee