|
|
|
@ -43,7 +43,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// }).catch((error) => {
|
|
|
|
|
// console.log(error)
|
|
|
|
|
// //console.log(error)
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -51,8 +51,8 @@ class CompetitionCommon extends Component{
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
|
if (prevProps.user != this.props.user) {
|
|
|
|
|
|
|
|
|
|
console.log("componentDidUpdatess");
|
|
|
|
|
console.log(this.props.user);
|
|
|
|
|
//console.log("componentDidUpdatess");
|
|
|
|
|
//console.log(this.props.user);
|
|
|
|
|
if (this.props.user && this.props.user.login != "") {
|
|
|
|
|
const zul = `/competitions/${this.props.match.params.identifier}/competition_staff.json`;
|
|
|
|
|
axios.get((zul)).then((result) => {
|
|
|
|
@ -64,7 +64,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
//console.log(error);
|
|
|
|
|
////console.log(error);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -103,7 +103,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
//console.log(error)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//this.props.user 有可能为空
|
|
|
|
@ -119,7 +119,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
//console.log(error);
|
|
|
|
|
////console.log(error);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -161,7 +161,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
//console.log(error)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -192,7 +192,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
//console.log(error)
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
if (module_url.substring(0, 7) == 'http://' || module_url.substring(0, 8) == 'https://') {
|
|
|
|
@ -309,7 +309,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
//console.log(error)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|