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)=>{ toDetailPage=(topicId)=>{
if(this.props.checkIfLogin()===false){ if(this.props.checkIfLogin()===false){
this.props.showLoginDialog() this.props.showLoginDialog("iscancel")
return return
} }

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

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

Loading…
Cancel
Save