From 82b8a2b9b3974b8c9640fe0b56155088be41acf5 Mon Sep 17 00:00:00 2001 From: unknown <qq1940665526@163.com> Date: 星期四, 30 五月 2024 14:09:25 +0800 Subject: [PATCH] 新书 --- src/components/examinations/index.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index bcc0deb..b31b7a1 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -426,7 +426,6 @@ props: { cardList: { type: Array, - default: [], }, primaryColor: { type: String, @@ -446,7 +445,13 @@ cardData:[] }; }, - inject:['changeQuestionData'], + watch:{ + cardList:{ + handler(newVal) { + console.log('11',newVal); + } + } + }, mounted() { this.cardData = this.cardList console.log('this.cardList',this.cardList); @@ -592,7 +597,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