dev_forum
杨树明 6 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;
@ -728,8 +729,8 @@ submittojoinclass=(value)=>{
> >
<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 }}
/> />

Loading…
Cancel
Save