刘洋 1 жил өмнө
parent
commit
9b1824c9a4

+ 8 - 9
src/modules/paper/views/EditPaper.vue

@@ -910,16 +910,15 @@ export default {
     this.initPaper();
   },
   methods: {
-    async initPaper(bool, bool2) {
+    async initPaper(bool) {
       const res = await paperDetailApi(this.paperId);
-      if (!bool2) {
-        res.data.paperDetails.forEach((detail) => {
-          detail.showQuestions = true;
-          detail.paperDetailUnits.forEach((question) => {
-            question.showSubQuestions = true;
-          });
+      res.data.paperDetails.forEach((detail) => {
+        detail.showQuestions = true;
+        detail.paperDetailUnits.forEach((question) => {
+          question.showSubQuestions = true;
         });
-      }
+      });
+
       this.paper = res.data;
       this.paper.title = this.paper.title || this.paper.name;
       this.showCheckDuplicate();
@@ -1183,7 +1182,7 @@ export default {
 
       if (!res) return;
       this.$message.success("操作成功!");
-      this.initPaper(false, true);
+      this.initPaper();
     },
     // 删除大题
     async toDeletePaperDetail(detail) {