dev_forum
杨树明 5 years ago
parent 610f4f1fea
commit b1a4b2633c

@ -393,6 +393,7 @@ class NewHeader extends Component {
// } // }
} }
onSearchhref = (value) => { onSearchhref = (value) => {
debugger
window.location.href ="/search?value="+value; window.location.href ="/search?value="+value;
// let code = e.keyCode; // let code = e.keyCode;
@ -727,10 +728,10 @@ submittojoinclass=(value)=>{
style={{display: 'none'}} style={{display: 'none'}}
> >
<Search <Search
placeholder="实践课程/翻转课堂/开发社区/交流问答" placeholder="实践课程/翻转课堂/开发社区/交流问答"
onSearch={(value)=>this.onSearchhref(value)} // onSearch={(value)=>this.onSearchhref(value)}
onSearch={value => console.log(value)}
onPressEnter={this.onKeywordSearchKeyDown} onPressEnter={this.onKeywordSearchKeyDown}
style={{ width: 300 }} style={{ width: 300 }}
/> />
</div> </div>

Loading…
Cancel
Save