Merge branches 'dev_aliyun' and 'onigin/ysl_a' of https://bdgit.educoder.net/Hjqreturn/educoder into onigin/ysl_a

# Conflicts:
#	public/react/src/modules/courses/Resource/Fileslistitem.js
#	public/react/src/modules/courses/busyWork/CommonWorkItem.js
#	public/react/src/modules/courses/exercise/ExerciseListItem.js
#	public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
#	public/react/src/modules/courses/graduation/topics/GraduateTopicItem.js
#	public/react/src/modules/courses/poll/PollListItem.js
#	public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
#	public/react/src/modules/login/LoginDialog.js
dev_newshixunModel
杨树明 5 years ago
parent 94721dca44
commit b369d36a3b

@ -17,7 +17,7 @@ class GraduateTopicItem extends Component{
toDetailPage=(topicId)=>{
if(this.props.checkIfLogin()===false){
this.props.showLoginDialog()
this.props.showLoginDialog("iscancel")
return
}

@ -398,11 +398,9 @@ class LoginDialog extends Component {
});
}
handleDialogClose = () => {
console.log(this.props.match)
debugger
if(this.props.match===undefined){
if(this.props.isloginCancel===undefined){
window.location.href="/";
this.props.Modifyloginvalue();
// this.setState({
// isRender: false
// })

@ -83,6 +83,7 @@ export function TPMIndexHOC(WrappedComponent) {
globalLoading: false,
dataquerys:{},
isloginCancel:undefined
}
}
@ -429,15 +430,16 @@ export function TPMIndexHOC(WrappedComponent) {
};
hideLoginDialog = () => {
this.setState({
isRender: false
isRender: false,
isloginCancel:undefined
})
}
showLoginDialog = () => {
this.setState({
isRender: true
isRender: true,
isloginCancel:"iscancel"
})
}
checkIfLogin = () => {
return this.state.current_user && this.state.current_user.login != ''
}

Loading…
Cancel
Save