消息的跳转

Adjustreact
caicai8 5 years ago
parent f4806076c4
commit 753e998192

@ -47,8 +47,17 @@ class VideoIndex extends Component{
}
componentDidMount=()=>{
const { type ,page } = this.state;
this.checkType(type,page);
const { search } = this.props.location;
const { page } = this.state;
if(search && search === "?open=live"){
this.setState({
type:"live"
})
this.checkType("live",page);
}else{
this.checkType("video",page);
}
}
// 获取直播列表
getLiveList=(page)=>{

@ -510,6 +510,8 @@ class MessagSub extends Component {
//分组作业
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}`);
}
case 'LiveLink':
return window.open(`/courses/${item.belong_container_id}/course_videos?open=live`);
case 'Hack':
if (item.extra && item.parent_container_type !== 'HackDelete') {
return window.open(`/problems/${item.extra}/edit`);

Loading…
Cancel
Save