From 6481dac6d8bc27232f7c539e8cc44c6699e87068 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Wed, 15 Jun 2022 09:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BEbug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/DetailsPageconetent.vue | 2 +- front/src/views/home/components/searchResultList.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index ce6f6c4c..4e3a1fda 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -462,7 +462,7 @@ // 从store获取选中的类型 // const Cardsname = computed(() => store.getters['home/selectCardsnum']) const router = useRouter() - const select = router.currentRoute.value.query.select + const select = router.currentRoute.value.query.select || '组件服务' const str = router.currentRoute.value.query.str const searchValue = ref(str) let tecHnosphere = router.currentRoute.value.query.tecHnosphere diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 47fd6b6b..4dd241ed 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -326,6 +326,7 @@ color: '#409eff', //主题色 title: '', //视频名称 src: '', //视频源 + type: 'm3u8', // 视频源类型 muted: false, //静音 webFullScreen: false, speedRate: ['0.75', '1.0', '1.25', '1.5', '2.0'], //播放倍速 @@ -480,7 +481,7 @@ getHls(param).then((res) => { console.log('获取视频地址===============>', res) // videoUrl.value = res.data.data - options.value.src = res.data.data + options.src = res.data.data visible.value = true }) }