diff --git a/web/app/(commonLayout)/datasets/Doc.tsx b/web/app/(commonLayout)/datasets/Doc.tsx index 30ab724c0f..609144962c 100644 --- a/web/app/(commonLayout)/datasets/Doc.tsx +++ b/web/app/(commonLayout)/datasets/Doc.tsx @@ -38,7 +38,7 @@ const useToc = (apiBaseUrl: string, locale: string) => { const tocItems: TocItem[] = headingElementsArray.map((heading, index) => ({ href: `#section-${index}`, - text: (heading.textContent || `章节 ${index + 1}`).trim(), + text: (heading.textContent || '').trim(), index, }))