Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_cs_new
daiao 6 years ago
commit 836f201b94

@ -74,7 +74,7 @@ class ListPageIndex extends Component{
componentDidMount(){
console.log("77");
var yslGuideone = window.sessionStorage.getItem('yslGuideone');
var yslGuideone = window.localStorage.getItem('yslGuideone');
console.log("78");
console.log(yslGuideone);
try {
@ -107,10 +107,10 @@ class ListPageIndex extends Component{
// })
// }
componentWillUnmount(){
window.sessionStorage.setItem('yslGuideone', "false");
// window.localStorage.setItem('yslGuideone', "false");
}
setwindowlocal=(bool)=>{
window.sessionStorage.setItem('yslGuideone', bool);
window.localStorage.setItem('yslGuideone', bool);
try {
if (bool === "true") {
console.log("115");

@ -207,14 +207,14 @@ class CoursesNew extends Component {
// this.goback()
window.location.href=first_category_url;
var yslGuideone = window.sessionStorage.getItem('yslGuideone');
var yslGuideone = window.localStorage.getItem('yslGuideone');
try {
if(yslGuideone=== null){
window.sessionStorage.setItem('yslGuideone', "true");
window.localStorage.setItem('yslGuideone', "true");
return
}
if(yslGuideone=== undefined){
window.sessionStorage.setItem('yslGuideone', "true");
window.localStorage.setItem('yslGuideone', "true");
return
}
}catch (e) {
@ -265,14 +265,14 @@ class CoursesNew extends Component {
if (response.status === 200) {
// this.goback
window.location.href=response.data.first_category_url;
var yslGuideone = window.sessionStorage.getItem('yslGuideone');
var yslGuideone = window.localStorage.getItem('yslGuideone');
try {
if(yslGuideone=== null){
window.sessionStorage.setItem('yslGuideone', "true");
window.localStorage.setItem('yslGuideone', "true");
return
}
if(yslGuideone=== undefined){
window.sessionStorage.setItem('yslGuideone', "true");
window.localStorage.setItem('yslGuideone', "true");
return
}
}catch (e) {

@ -157,6 +157,7 @@ class ShixunStudentWork extends Component {
lunxun:false,
duplicatechecking:false,
});
return;
}
}
}
@ -177,6 +178,9 @@ class ShixunStudentWork extends Component {
description: response.data.message
});
}
this.setState({
lunxun:true,
})
setInterval(() => {
console.log("开始轮询了");
if(this.state.lunxun===true){

Loading…
Cancel
Save