diff --git a/docs/.vitepress/src/components/DocBreadCrumb.vue b/docs/.vitepress/src/components/DocBreadCrumb.vue
index 7c889dbb89a07e87c36aaaf207bd33216e09947e..0920a77eb90cf8a5eb973cf46d2e7e005b6f2514 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 7fd561aedc205109be72279306423e83b764da98..fe2c35582c1e76b9111cf455786dacd9964b1c73 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);
}