浏览代码

FIX:课程题库 新增试题未清空历史选项的问题

Long 1 周之前
父节点
当前提交
381c8b4944
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/views/course/courseQuestionBank/index.vue

+ 6 - 0
src/views/course/courseQuestionBank/index.vue

@@ -546,6 +546,12 @@ export default {
     /** 新增按钮操作 */
     handleAdd() {
       this.reset();
+      this.question = [
+        { name: "", isAnswer: 0, indexId:0},
+        { name: "", isAnswer: 0, indexId:1},
+        { name: "", isAnswer: 0, indexId:2},
+        { name: "", isAnswer: 0, indexId:3},
+      ]
       this.questionSubTypeOptions = []
       this.open = true;
       this.title = "添加题库";