From 9b2dce4e2a6d59aefdc43ee954a93f5cd26e1971 Mon Sep 17 00:00:00 2001 From: luckyasme <807254037@qq.com> Date: Tue, 4 Mar 2025 16:06:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E8=B4=A1=E7=8C=AE=E6=8C=87=E5=8D=97?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E7=89=88=E6=9C=AC=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/src/layouts/LayoutDoc.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/src/layouts/LayoutDoc.vue b/docs/.vitepress/src/layouts/LayoutDoc.vue index 6abdd8c..a5e0cb4 100644 --- a/docs/.vitepress/src/layouts/LayoutDoc.vue +++ b/docs/.vitepress/src/layouts/LayoutDoc.vue @@ -55,6 +55,13 @@ const props = defineProps({ }, }); +// 是否是贡献指南手册,直接显示 文档中心 > 贡献指南的具体章节 +const isContribute = computed(() => { + const pathHref = route.path.replace('.html', ''); + return pathHref.includes('/zh/Contribute') || pathHref.includes('/en/Contribute'); +}) + + // -------------------- 菜单 -------------------- let isScrolling = false; const menuStore = useMenuStore(); @@ -364,7 +371,7 @@ onUnmounted(() => {
{{ moduleNode?.label }}
-{{ moduleNode?.label }}