Commit dca77248 by yuananting

fix:去除console

parent 6b940f8b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-25 13:46:35 * @Date: 2021-02-25 13:46:35
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-25 15:08:08 * @LastEditTime: 2021-03-25 15:39:55
* @Description: 助学工具-题库-题目管理-新增题目 * @Description: 助学工具-题库-题目管理-新增题目
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -391,7 +391,6 @@ class AddNewQuestion extends Component { ...@@ -391,7 +391,6 @@ class AddNewQuestion extends Component {
}} }}
questionInfo={gapFillingContent} questionInfo={gapFillingContent}
onSetState={(newContent) => { onSetState={(newContent) => {
console.log("填空题", newContent)
Object.assign(gapFillingContent, newContent); Object.assign(gapFillingContent, newContent);
}} }}
/> />
......
...@@ -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 15:10:56 * @LastEditTime: 2021-03-25 15:40:18
* @Description: 助学工具-题库-题目管理-新建题目Tab * @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -132,7 +132,6 @@ class NewQuestionTab extends Component { ...@@ -132,7 +132,6 @@ class NewQuestionTab extends Component {
} }
_onSetState = (params = {}) => { _onSetState = (params = {}) => {
console.log("_onSetState_____this.state.gapFillingAnswer", this.state.gapFillingAnswer)
this.setState({ ...params, updateKey: window.random_string(16) }, () => { this.setState({ ...params, updateKey: window.random_string(16) }, () => {
this.props.onSetState({ this.props.onSetState({
questionStemList: JSON.parse(JSON.stringify(this.state.stemContent)), questionStemList: JSON.parse(JSON.stringify(this.state.stemContent)),
...@@ -575,7 +574,6 @@ class NewQuestionTab extends Component { ...@@ -575,7 +574,6 @@ class NewQuestionTab extends Component {
changeBlankCount = (data, idx) => { changeBlankCount = (data, idx) => {
const { gapFillingAnswer } = this.state; const { gapFillingAnswer } = this.state;
let _gap = [...gapFillingAnswer]; let _gap = [...gapFillingAnswer];
console.log("__changeBlankCount_gap111", _gap)
if (data.length <= idx) { if (data.length <= idx) {
_gap.splice(idx, 1); _gap.splice(idx, 1);
} else { } else {
...@@ -597,7 +595,6 @@ class NewQuestionTab extends Component { ...@@ -597,7 +595,6 @@ class NewQuestionTab extends Component {
item.editInput = false; item.editInput = false;
return item; return item;
}); });
console.log("__changeBlankCount_gap222", _gap)
} }
this.setState( this.setState(
...@@ -687,7 +684,6 @@ class NewQuestionTab extends Component { ...@@ -687,7 +684,6 @@ class NewQuestionTab extends Component {
}; };
renderGapFillingAnswer = (optionItem, optionIndex) => { renderGapFillingAnswer = (optionItem, optionIndex) => {
console.log("*****renderGapFillingAnswer******", gapFillingAnswer)
const { gapFillingAnswer } = this.state; const { gapFillingAnswer } = this.state;
const list = const list =
gapFillingAnswer[optionIndex] && gapFillingAnswer[optionIndex] &&
......
...@@ -159,7 +159,6 @@ class QuestionEditor extends Component { ...@@ -159,7 +159,6 @@ class QuestionEditor extends Component {
); );
if (counter === 0) { if (counter === 0) {
console.log("编辑——0————editor:", stemDom)
this.props.changeBlankCount(stemDom); this.props.changeBlankCount(stemDom);
} }
} }
......
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