fix: bug

This commit is contained in:
杨航
2025-11-25 16:38:03 +08:00
parent a0325bfb58
commit 584f2a9711
2 changed files with 14 additions and 3 deletions
+10
View File
@@ -75,6 +75,8 @@
</view>
</view>
<Feedback ref="feedbackRef" />
<badge ref="badgeRef"></badge>
<points ref="pointsRef"></points>
</view>
</template>
@@ -102,6 +104,11 @@
import {
partnerChatReport
} from "@/api/sparring.js"
import badge from '@/components/points-and-badge/badge';
import points from '@/components/points-and-badge/points';
import usePointsAndBadge from '@/components/points-and-badge/usePointsAndBadge';
const { pointAndBadgesRun, badgeRef, pointsRef } = usePointsAndBadge();
const traId = ref('')
const execId = ref('')
const talkingType = ref('')
@@ -240,6 +247,9 @@
isLoading.value = false
setTimeout(() => {
showLoading.value = false
if(isPass.value){
pointAndBadgesRun(isPreview.value ? '07': '08', '', ()=>{})
}
}, 800)
} else {
setTimeout(getData, 2000)
+4 -3
View File
@@ -423,9 +423,10 @@
watchFlag.value = 1;
socketStore?.closeSocket();
changePlayItemId('')
pointAndBadgesRun(talkingType.value === '01'? '07': '08', null, ()=>{
common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':''))
})
common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':''))
// pointAndBadgesRun(talkingType.value === '01'? '07': '08', '', ()=>{
// common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value + '&execId=' + execId.value + '&type=' + talkingType.value + '&isPreview=' + (isPreview.value ?'1':''))
// })
})
}
})