Skip to content

Commit 633a2de

Browse files
committed
chore: remove td-doc-search
1 parent c627760 commit 633a2de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

site/web/App.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Components() {
4444
const tdDocAsideRef = useRef();
4545
const tdDocContentRef = useRef();
4646
const tdSelectRef = useRef();
47-
const tdDocSearch = useRef();
47+
// const tdDocSearch = useRef();
4848

4949
const [version] = useState(currentVersion);
5050

@@ -68,7 +68,7 @@ function Components() {
6868

6969
useEffect(() => {
7070
tdHeaderRef.current.framework = 'react';
71-
tdDocSearch.current.docsearchInfo = { indexName: 'tdesign_doc_react_mobile' };
71+
// tdDocSearch.current.docsearchInfo = { indexName: 'tdesign_doc_react_mobile' };
7272

7373
const isEn = window.location.pathname.endsWith('en');
7474

@@ -104,7 +104,8 @@ function Components() {
104104
return (
105105
<td-doc-layout>
106106
<td-header ref={tdHeaderRef} slot="header" platform="mobile">
107-
<td-doc-search slot="search" ref={tdDocSearch} />
107+
{/* 暂时注释,等 algolia 重新更新后可直接放开 */}
108+
{/* <td-doc-search slot="search" ref={tdDocSearch} /> */}
108109
</td-header>
109110
<td-doc-aside ref={tdDocAsideRef} title="React for Mobile">
110111
<td-select ref={tdSelectRef} value={version} slot="extra"></td-select>

0 commit comments

Comments
 (0)