|
|
|
@ -236,6 +236,12 @@ class BoardsNew extends Component{
|
|
|
|
|
title_num: 60 - parseInt(e.target.value.length)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
goBack = () => {
|
|
|
|
|
// this.props.history.goBack()
|
|
|
|
|
const courseId=this.props.match.params.coursesId;
|
|
|
|
|
const boardId = this.props.match.params.boardId
|
|
|
|
|
this.props.toListPage(courseId, boardId)
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let { addGroup, fileList, course_id, title_num } = this.state;
|
|
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
|
@ -309,8 +315,8 @@ class BoardsNew extends Component{
|
|
|
|
|
<p className="clearfix mt20 mb20">
|
|
|
|
|
<span className="fl font-24 color-grey-3">{this.isEdit ? "编辑" : "新建"}帖子</span>
|
|
|
|
|
<a href="javascript:void(0)" className="color-grey-6 fr font-16 mr2"
|
|
|
|
|
onClick={() => this.props.history.goBack()}>
|
|
|
|
|
{/*返回*/}
|
|
|
|
|
onClick={this.goBack}>
|
|
|
|
|
返回
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
{/* notRequired */}
|
|
|
|
|