From b5983dec7cd44b489442781010dc29881e8fbb2d Mon Sep 17 00:00:00 2001 From: zoujing Date: Mon, 10 Aug 2026 09:45:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=87=E6=8D=A2tab=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E4=B9=8B=E5=89=8D=E7=9A=84=E5=8F=91=E7=8E=B0?= =?UTF-8?q?=E9=A1=B5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Discovery/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/Discovery/index.vue b/src/pages/Discovery/index.vue index 7190538..71288a0 100644 --- a/src/pages/Discovery/index.vue +++ b/src/pages/Discovery/index.vue @@ -99,6 +99,11 @@ const handleMainPanoramaClick = () => { isMainPanoramaGuide.value = true; currentTabsId.value = ""; discoveryTabs.value = []; + clearDiscoveryData(); +}; + +/// 切换tab时,清空之前的发现页数据 +const clearDiscoveryData = () => { discoveryCards.value = []; exploreCards.value = []; discoveryQuickQuestions.value = []; @@ -113,6 +118,8 @@ const handleMainPanoramaClick = () => { const handleTabChange = ({ tab, idx }) => { activeIndex.value = idx; queryDiscoveryData(tab); + /// 切换tab时,清空之前的发现页数据 + clearDiscoveryData(); } /// 请求发现页tab数据