From 4eba4a903cf4d4fecfa570e863e7c3f888bec9e0 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 14 六月 2024 16:56:56 +0800
Subject: [PATCH] 学前儿童bug修改

---
 src/components/examinations/index.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue
index ff6a449..5986ef3 100644
--- a/src/components/examinations/index.vue
+++ b/src/components/examinations/index.vue
@@ -474,6 +474,7 @@
 </template>
 
 <script>
+import { Message } from 'element-ui';
 export default {
   name: "examination-option",
   props: {
@@ -637,13 +638,10 @@
       }
     },
     // 淇濆瓨鎸夐挳
-    saveAnswer() {
-      const element = (
-        this.container ? this.container : document
-      ).querySelector(".examination");
-      if (element) {
+    saveAnswer(e) {
+      if (e.srcElement) {
         const pageNum = this.getParentWithClass(
-          element,
+          e.srcElement,
           "page-box"
         ).getAttribute("page");
         const oldAnswerData = localStorage.getItem(
@@ -674,6 +672,7 @@
           this.config.activeBook.name + "oldAnswerData",
           JSON.stringify(oldData)
         );
+        Message.success('淇濆瓨鎴愬姛')
       }
 
       // if(oldData[this.chapter]) {

--
Gitblit v1.9.1