From 23ebc0d9ee7d4b06916478f84b411d0406f11a3a Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 05 六月 2024 18:49:07 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/lifeCare/view/chapter001.vue |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/books/lifeCare/view/chapter001.vue b/src/books/lifeCare/view/chapter001.vue
index 5a6deb5..6a299d3 100644
--- a/src/books/lifeCare/view/chapter001.vue
+++ b/src/books/lifeCare/view/chapter001.vue
@@ -1403,7 +1403,7 @@
 </template>
 
 <script>
-import getResourcePath from "@/assets/methods/resources.js";
+import { getResourcePath } from "@/assets/methods/resources.js";
 import examinations from "@/components/examinations/index.vue";
 
 export default {
@@ -1415,6 +1415,10 @@
     },
     questionData: {
       type: Object,
+    },
+    isSearch: {
+      type: Boolean,
+      default: false,
     },
   },
   data() {
@@ -1440,13 +1444,15 @@
     examinations,
   },
   async created() {
-    const localData = JSON.parse(localStorage.getItem("chapter001"));
-    if (localData) {
-      this.chapter001 = { ...Object.assign(this.chapter001, localData) };
+    if (!this.isSearch) {
+      const localData = JSON.parse(localStorage.getItem("chapter001"));
+      if (localData) {
+        this.chapter001 = { ...Object.assign(this.chapter001, localData) };
+      }
+      this.chapter001.videOneUrl = await getResourcePath(
+        "68ebd5c05bcb742999a9ebdce4b4bd53"
+      );
     }
-    this.chapter001.videOneUrl = await getResourcePath(
-      "68ebd5c05bcb742999a9ebdce4b4bd53"
-    );
   },
   methods: {
     activityOne() {

--
Gitblit v1.9.1