From efc7f074932e5f583fb89bfe0203cb0146187122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 24 Nov 2025 16:28:21 +0800 Subject: [PATCH] fix: bug --- src/pages/sparring/index.vue | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/pages/sparring/index.vue b/src/pages/sparring/index.vue index dc7627c1..5fe9ee80 100644 --- a/src/pages/sparring/index.vue +++ b/src/pages/sparring/index.vue @@ -361,6 +361,8 @@ }) currentTab.value = 0 currentTabSec.value = 0 + activeTabId.value = '' + activeTabSecId.value = '' queryTraPartnerCatelogList().then(res => { catelogList.value = res.body || [] }) @@ -382,32 +384,29 @@ uni.$off('refresh_sparring_list') }) onActivated(() => { - currentTab.value = 0 - currentTabSec.value = 0 - // 重新获取标签信息 - getTraTagListApi().then(res => { - tagsTree.value = res.body || [] - }) - changeTab({ - name: activeTab.value || '全部' - }) - }) - onShow(() => { reSeting.value = true setTimeout(() => { reSeting.value = false }) currentTab.value = 0 currentTabSec.value = 0 - changeTab({ - name: activeTab.value || '全部', - value: activeCourseType.value || '' + activeTabId.value = '' + activeTabSecId.value = '' + // 重新获取标签信息 + getTraTagListApi().then(res => { + tagsTree.value = res.body || [] }) + changeTab({ + name: '全部', + value: '' + }) + }) + onShow(() => { socketStore.closeSocket() uni.$on('refresh_sparring_list', () => { changeTab({ - name: activeTab.value || '全部', - value: activeCourseType.value || '' + name: '全部', + value: '' }) }) })