This commit is contained in:
杨航
2025-11-24 16:28:21 +08:00
parent 82f0598da5
commit efc7f07493
+15 -16
View File
@@ -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: ''
})
})
})