diff --git a/src/views/examinationPaper/add.vue b/src/views/examinationPaper/add.vue index 2d8ed34..420b699 100644 --- a/src/views/examinationPaper/add.vue +++ b/src/views/examinationPaper/add.vue @@ -1521,7 +1521,7 @@ export default { this.tagList = deepClone(this.answerTypeList); this.answerTypeName = ""; if (type != -1) { - this.form.tagId = data || ""; + this.form.tagId = data || ""; this.$message.success("添加成功"); } } else { @@ -1607,7 +1607,7 @@ export default { }) || []; if (!hasWrongType) { this.answerTypeName = "错题复习"; - await this.addPaperType(-1); + await this.addPaperType(-1); } // if (this.type != 2) { // this.form.tagId = this.answerTypeList[0]?.id || ""; @@ -1697,7 +1697,9 @@ export default { } this.form.tagId = ""; this.formatData(data); - this.form.tagId = data.tagId; + if (data.tagId > 0) { + this.form.tagId = data.tagId; + } } else { this.$message.error(info); }