From 58a1f8c0fe7c46f21382f6359be02a8e375ece04 Mon Sep 17 00:00:00 2001
From: unknown <qq1940665526@163.com>
Date: 星期三, 05 六月 2024 17:59:48 +0800
Subject: [PATCH] 体育与健康样章

---
 src/books/lifeCare/view/chapter008.vue |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/src/books/lifeCare/view/chapter008.vue b/src/books/lifeCare/view/chapter008.vue
index 54a9bc7..e9b08d3 100644
--- a/src/books/lifeCare/view/chapter008.vue
+++ b/src/books/lifeCare/view/chapter008.vue
@@ -1092,7 +1092,7 @@
   </div>
 </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 {
@@ -1104,6 +1104,10 @@
     },
     questionData: {
       type: Object,
+    },
+    isSearch: {
+      type: Boolean,
+      default: false,
     },
   },
   data() {
@@ -1230,20 +1234,18 @@
     examinations,
   },
   async created() {
-    const localData = JSON.parse(localStorage.getItem("chapter008"));
-    if (localData) {
-      this.chapter008 = { ...Object.assign(this.chapter008, localData) };
+    if (!this.isSearch) {
+      const localData = JSON.parse(localStorage.getItem("chapter008"));
+      if (localData) {
+        this.chapter008 = { ...Object.assign(this.chapter008, localData) };
+      }
+      this.chapter008.videOneUrl = await getResourcePath(
+        "80986796eb2d8ee1a47cdde606900ed0"
+      );
+      this.chapter008.videoTwoUrl = await getResourcePath(
+        "460c7bc740882a9ad93b096a2151dd1c"
+      );
     }
-    this.chapter008.videOneUrl = await getResourcePath(
-      "80986796eb2d8ee1a47cdde606900ed0"
-    );
-    this.chapter008.videoTwoUrl = await getResourcePath(
-      "460c7bc740882a9ad93b096a2151dd1c"
-    );
-    // this.chapter008.videOneUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=80986796eb2d8ee1a47cdde606900ed0";
-    // this.chapter008.videoTwoUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=460c7bc740882a9ad93b096a2151dd1c";
   },
   methods: {
     activityOne() {

--
Gitblit v1.9.1