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 }) }