diff --git a/src/pages/Discovery/components/PanoramicHome/index.vue b/src/pages/Discovery/components/PanoramicHome/index.vue
index 7a76aa9..c9d7a16 100644
--- a/src/pages/Discovery/components/PanoramicHome/index.vue
+++ b/src/pages/Discovery/components/PanoramicHome/index.vue
@@ -8,7 +8,23 @@
hover-stay-time="80"
@tap="handleCardTap(panoramaMainCards[0])"
>
+
{
return panoramaOtherCards.value[activeSwiperIndex.value] || panoramaOtherCards.value[0];
});
+const isMp4Video = (url) => {
+ return typeof url === "string" && /\.mp4(?:[?#].*)?$/i.test(url.trim());
+};
+
const handleSwiperChange = (event) => {
activeSwiperIndex.value = Number(event.detail?.current || 0);
};
diff --git a/src/pages/Discovery/index.vue b/src/pages/Discovery/index.vue
index 77d147a..d79a4a4 100644
--- a/src/pages/Discovery/index.vue
+++ b/src/pages/Discovery/index.vue
@@ -78,6 +78,7 @@ const handleContentScroll = (e) => {
/// 点击主景区
const handleMainPanoramaClick = () => {
isMainPanoramaGuide.value = true;
+ discoveryTabs.value = [];
discoveryCards.value = [];
exploreCards.value = [];
discoveryQuickQuestions.value = [];