From 2f41de15eafb36e984cacbe6b9973e262ea2501d Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 28 五月 2024 18:44:59 +0800
Subject: [PATCH] 题目保存优化

---
 src/components/examinations/index.vue |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue
index bcc0deb..ce572f4 100644
--- a/src/components/examinations/index.vue
+++ b/src/components/examinations/index.vue
@@ -446,7 +446,6 @@
       cardData:[]
     };
   },
-  inject:['changeQuestionData'],
   mounted() {
     this.cardData = this.cardList
     console.log('this.cardList',this.cardList);
@@ -592,7 +591,7 @@
         }
         if(oldData[pageNum]) {
           oldData[pageNum] = oldData[pageNum].filter(citem => asnwerList.findIndex(ditem => ditem.id == citem.id) == -1 )
-          oldData[pageNum].push(asnwerList)
+          oldData[pageNum].push(...asnwerList)
         } else {
           oldData[pageNum] = asnwerList
         }

--
Gitblit v1.9.1