Commit dca77248 by yuananting

fix:去除console

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