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/chapter002.vue | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/books/lifeCare/view/chapter002.vue b/src/books/lifeCare/view/chapter002.vue index e82a22a..2f8ecad 100644 --- a/src/books/lifeCare/view/chapter002.vue +++ b/src/books/lifeCare/view/chapter002.vue @@ -1410,7 +1410,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 { @@ -1422,6 +1422,10 @@ }, questionData: { type: Object, + }, + isSearch: { + type: Boolean, + default: false, }, }, data() { @@ -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