diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index d698ebf95..506e70f99 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -393,6 +393,7 @@ class NewHeader extends Component { // } } onSearchhref = (value) => { + debugger window.location.href ="/search?value="+value; // let code = e.keyCode; @@ -727,10 +728,10 @@ submittojoinclass=(value)=>{ style={{display: 'none'}} > this.onSearchhref(value)} - - onPressEnter={this.onKeywordSearchKeyDown} + placeholder="实践课程/翻转课堂/开发社区/交流问答" + // onSearch={(value)=>this.onSearchhref(value)} + onSearch={value => console.log(value)} + onPressEnter={this.onKeywordSearchKeyDown} style={{ width: 300 }} />