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/chapter006.vue | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/books/lifeCare/view/chapter006.vue b/src/books/lifeCare/view/chapter006.vue index 75b5a2b..493e372 100644 --- a/src/books/lifeCare/view/chapter006.vue +++ b/src/books/lifeCare/view/chapter006.vue @@ -1307,7 +1307,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 { @@ -1319,6 +1319,10 @@ }, questionData: { type: Object, + }, + isSearch: { + type: Boolean, + default: false, }, }, data() { @@ -1455,15 +1459,15 @@ examinations, }, async created() { - const localData = JSON.parse(localStorage.getItem("chapter006")); - if (localData) { - this.chapter006 = { ...Object.assign(this.chapter006, localData) }; + if (!this.isSearch) { + const localData = JSON.parse(localStorage.getItem("chapter006")); + if (localData) { + this.chapter006 = { ...Object.assign(this.chapter006, localData) }; + } + this.chapter006.videOneUrl = await getResourcePath( + "04fafb0e896ffe0379edd6d695a92b13" + ); } - this.chapter006.videOneUrl = await getResourcePath( - "04fafb0e896ffe0379edd6d695a92b13" - ); - // this.chapter006.videOneUrl = - // "https://jsek.bnuic.com/file/api/ApiDownload?md5=04fafb0e896ffe0379edd6d695a92b13"; }, methods: { activityOne() { -- Gitblit v1.9.1