From 57ebfaedfe6364ab0c3beb1afe01c00fe2798a2c Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 06 六月 2024 10:28:54 +0800 Subject: [PATCH] 嵌入式优化 --- src/books/childHealth/view/content/components/chapter005.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/books/childHealth/view/content/components/chapter005.vue b/src/books/childHealth/view/content/components/chapter005.vue index 90232d9..8282584 100644 --- a/src/books/childHealth/view/content/components/chapter005.vue +++ b/src/books/childHealth/view/content/components/chapter005.vue @@ -2723,7 +2723,7 @@ <script> import examinations from "@/components/examinations/index.vue"; -import getResourcePath from "@/assets/methods/resources"; +import {getResourcePath} from "@/assets/methods/resources"; export default { name: "chapterFive", components: { examinations }, @@ -2733,6 +2733,10 @@ }, showPageList: { type: Array, + }, + isSearch: { + type: Boolean, + default: false, }, }, data() { @@ -2875,13 +2879,13 @@ JSON.stringify(this.chapterFiveData) ); }, - getVideoPath() { - this.$data.pathOne = getResourcePath("5698398be3f5c7fdb247218b2a687257"); - this.$data.pathTwo = getResourcePath("5905673b09837c74953dd11fcb27d123"); - this.$data.pathThree = getResourcePath( + async getVideoPath() { + this.$data.pathOne = await getResourcePath("5698398be3f5c7fdb247218b2a687257"); + this.$data.pathTwo = await getResourcePath("5905673b09837c74953dd11fcb27d123"); + this.$data.pathThree = await getResourcePath( "1f768157227c193ed5c11f972f66e692" ); - this.$data.pathFour = getResourcePath("4f446d88ec1ed081a172b7130dce896b"); + this.$data.pathFour = await getResourcePath("4f446d88ec1ed081a172b7130dce896b"); }, }, }; -- Gitblit v1.9.1