diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 528ec6b94..0cc9fd687 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -21,7 +21,6 @@ function locationurl(list){ const debugType =window.location.search.indexOf('debug=t') != -1 ? 'teacher' : window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin' window._debugType = debugType; - export function initAxiosInterceptors(props) { // TODO 避免重复的请求 https://github.com/axios/axios#cancellation diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 4e61101e3..d698ebf95 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -392,6 +392,15 @@ class NewHeader extends Component { // return false; // } } + onSearchhref = (value) => { + window.location.href ="/search?value="+value; + // let code = e.keyCode; + + // if(code == 13) { + // header_search(this); + // return false; + // } + } hideAddcoursestypes=()=>{ @@ -719,7 +728,7 @@ submittojoinclass=(value)=>{ > console.log(value)} + onSearch={(value)=>this.onSearchhref(value)} onPressEnter={this.onKeywordSearchKeyDown} style={{ width: 300 }}