|
|
@ -207,6 +207,7 @@ class TPMIndex extends Component {
|
|
|
|
propaedeutics:response.data.propaedeutics,
|
|
|
|
propaedeutics:response.data.propaedeutics,
|
|
|
|
status: response.data.shixun_status,
|
|
|
|
status: response.data.shixun_status,
|
|
|
|
secret_repository: response.data.secret_repository,
|
|
|
|
secret_repository: response.data.secret_repository,
|
|
|
|
|
|
|
|
public:response.data.public,
|
|
|
|
is_jupyter:response.data.is_jupyter=== undefined||response.data.is_jupyter===null?false:response.data.is_jupyter,
|
|
|
|
is_jupyter:response.data.is_jupyter=== undefined||response.data.is_jupyter===null?false:response.data.is_jupyter,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -295,10 +296,6 @@ class TPMIndex extends Component {
|
|
|
|
// this.getnavdatas()
|
|
|
|
// this.getnavdatas()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// componentDidUpdate=()=>{
|
|
|
|
|
|
|
|
// this.getnavdatas()
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setLoadingContent = (isLoadingContent) => {
|
|
|
|
setLoadingContent = (isLoadingContent) => {
|
|
|
|
this.setState({ loadingContent: isLoadingContent })
|
|
|
|
this.setState({ loadingContent: isLoadingContent })
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -307,9 +304,6 @@ class TPMIndex extends Component {
|
|
|
|
getnavdatas=()=>{
|
|
|
|
getnavdatas=()=>{
|
|
|
|
let selectedKeys;
|
|
|
|
let selectedKeys;
|
|
|
|
const {location} = this.props;
|
|
|
|
const {location} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
console.log(location.pathname)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(location.pathname.indexOf('/challenges')!=-1){
|
|
|
|
if(location.pathname.indexOf('/challenges')!=-1){
|
|
|
|
selectedKeys="1"
|
|
|
|
selectedKeys="1"
|
|
|
|
}else if(location.pathname.indexOf('/propaedeutics')!=-1){
|
|
|
|
}else if(location.pathname.indexOf('/propaedeutics')!=-1){
|
|
|
|