From 1c389a5a5c22c8d57ee79cc9ac8ed6db6c8dbadc Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 04 六月 2024 18:01:59 +0800
Subject: [PATCH] 搜素优化

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

diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue
index 0087def..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);

--
Gitblit v1.9.1