dev_forum
杨树林 5 years ago
parent be5893f43d
commit 56a4397eb6

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

Loading…
Cancel
Save