diff --git a/public/react/src/modules/courses/boards/BoardsNew.js b/public/react/src/modules/courses/boards/BoardsNew.js index 718b6de42..303d683ce 100644 --- a/public/react/src/modules/courses/boards/BoardsNew.js +++ b/public/react/src/modules/courses/boards/BoardsNew.js @@ -78,6 +78,7 @@ class BoardsNew extends Component{ if (data) { this.editTopic = data; this.props.form.setFieldsValue({ + sticky: !!data.sticky, content: data.content, subject: data.subject, select_board_id: data.board_id // TODO 没返回给前端 @@ -309,6 +310,14 @@ class BoardsNew extends Component{ label="标题" className="topicTitle " > + {getFieldDecorator('sticky', { + valuePropName: 'checked', + })( + 置顶 + )} {getFieldDecorator('subject', { rules: [{ required: true, message: '请输入标题', @@ -347,7 +356,7 @@ class BoardsNew extends Component{ )} - { isAdmin && @@ -355,7 +364,7 @@ class BoardsNew extends Component{ })( 置顶 )} - } + } */}