|
|
|
@ -58,15 +58,6 @@ class TPMBanner extends Component {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// star_info:[0, 0, 0, 0, 0, 0],
|
|
|
|
|
// star_infos:[0, 0, 0, 0, 0, 0],
|
|
|
|
|
// shixunsDetails:{},
|
|
|
|
|
// shixunId: undefined,
|
|
|
|
|
// componentWillReceiveProps(newProps, newContext){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// shixunsDetails: newProps.shixunsDetails
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
IEVersion = () => {
|
|
|
|
|
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
|
|
|
|
@ -141,8 +132,11 @@ class TPMBanner extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
|
|
|
|
|
let thiisie = this.IEVersion();
|
|
|
|
@ -155,6 +149,7 @@ class TPMBanner extends Component {
|
|
|
|
|
isIE: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -784,7 +779,8 @@ class TPMBanner extends Component {
|
|
|
|
|
};
|
|
|
|
|
//
|
|
|
|
|
// console.log(this.props.shixunsDetails&&this.props.shixunsDetails.is_jupyter)
|
|
|
|
|
|
|
|
|
|
console.log(this.props)
|
|
|
|
|
console.log(this.state)
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
shixunsDetails === undefined ? "" :
|
|
|
|
|