Commit 9fcfeafa by yuananting

fix:调试

parent 9dba4c3b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-25 14:34:29 * @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-25 19:10:32 * @LastEditTime: 2021-03-25 19:38:03
* @Description: 助学工具-题库-题目管理-新建题目Tab * @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -586,7 +586,7 @@ class NewQuestionTab extends Component { ...@@ -586,7 +586,7 @@ class NewQuestionTab extends Component {
} }
changeBlankCount = (data, idx) => { changeBlankCount = (data, idx) => {
console.log(111, data, idx); console.log(123, data, idx);
const { gapFillingAnswer } = this.state; const { gapFillingAnswer } = this.state;
let _gap = this.state.gapFillingAnswer; let _gap = this.state.gapFillingAnswer;
console.log(data.length, idx) console.log(data.length, idx)
......
...@@ -202,7 +202,7 @@ class QuestionEditor extends Component { ...@@ -202,7 +202,7 @@ class QuestionEditor extends Component {
prevList = [...ids]; prevList = [...ids];
this.setState({ blanksList: _blanksList }, () => this.setState({ blanksList: _blanksList }, () =>
this.props.changeBlankCount(_blanksList, ids ? idx : -1) this.props.changeBlankCount(_blanksList, ids.length > 0 ? idx : -1)
); );
} }
this.setState( this.setState(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment