dev_forum
hjm 6 years ago
parent 8300491b27
commit 4dff0a03ce

@ -452,6 +452,11 @@ class CoursesIndex extends Component{
(props) => (<Resourcelist {...this.props} {...props} {...this.state} />)
}
></Route>
<Route exact path="/courses/:coursesId/boards/:boardId"
render={
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
}
></Route>
{/*课堂讨论*/}
<Route path="/courses/:coursesId/boards/:boardId"
render={
@ -593,13 +598,13 @@ class CoursesIndex extends Component{
></Route>
{/* 普通作业 */}
<Route path="/courses/:coursesId/common_homeworks" exact
<Route path="/courses/:coursesId/common_homeworks/:category_id" exact
render={
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
}
></Route>
{/* 分组作业 */}
<Route path="/courses/:coursesId/group_homeworks" exact
<Route path="/courses/:coursesId/group_homeworks/:category_id" exact
render={
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
}

@ -71,6 +71,13 @@ class commonWork extends Component{
sureDelClasses(){
}
componentDidUpdate(prevProps, prevState) {
debugger;
if (prevProps.match.path != this.props.match.path) {
this.componentDidMount()
}
}
componentDidMount(){
this.setState({

Loading…
Cancel
Save