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/chapter002.vue | 28 +++++++++++++++------------- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/books/lifeCare/view/chapter002.vue b/src/books/lifeCare/view/chapter002.vue index 75f7b68..2f8ecad 100644 --- a/src/books/lifeCare/view/chapter002.vue +++ b/src/books/lifeCare/view/chapter002.vue @@ -1423,6 +1423,10 @@ questionData: { type: Object, }, + isSearch: { + type: Boolean, + default: false, + }, }, data() { return { @@ -1663,20 +1667,18 @@ examinations, }, async created() { - const localData = JSON.parse(localStorage.getItem("chapter002")); - if (localData) { - this.chapter002 = { ...Object.assign(this.chapter002, localData) }; + if (!this.isSearch) { + const localData = JSON.parse(localStorage.getItem("chapter002")); + if (localData) { + this.chapter002 = { ...Object.assign(this.chapter002, localData) }; + } + this.chapter002.videOneUrl = await getResourcePath( + "6e471afdbeb95a8891f1551cbb0cd4fd" + ); + this.chapter002.videOneUrl116 = await getResourcePath( + "b727b78f8036a38cbd054816a81da7f8" + ); } - this.chapter002.videOneUrl = await getResourcePath( - "6e471afdbeb95a8891f1551cbb0cd4fd" - ); - this.chapter002.videOneUrl116 = await getResourcePath( - "b727b78f8036a38cbd054816a81da7f8" - ); - // this.chapter002.videOneUrl116 = - // "https:/jsek.bnuic.com/file/api/ApiDownload?md5=b727b78f8036a38cbd054816a81da7f8"; - // this.chapter002.videOneUrl = - // "https:/jsek.bnuic.com/file/api/ApiDownload?md5=6e471afdbeb95a8891f1551cbb0cd4fd"; }, methods: { activityOne() { -- Gitblit v1.9.1