dev_forum
杨树林 5 years ago
parent d28c6e85b7
commit 385422819a

@ -21,7 +21,6 @@ function locationurl(list){
const debugType =window.location.search.indexOf('debug=t') != -1 ? 'teacher' : const debugType =window.location.search.indexOf('debug=t') != -1 ? 'teacher' :
window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin' window.location.search.indexOf('debug=s') != -1 ? 'student' : 'admin'
window._debugType = debugType; window._debugType = debugType;
export function initAxiosInterceptors(props) { export function initAxiosInterceptors(props) {
// TODO 避免重复的请求 https://github.com/axios/axios#cancellation // TODO 避免重复的请求 https://github.com/axios/axios#cancellation

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

Loading…
Cancel
Save