File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments