修改bug

This commit is contained in:
张运江 2025-02-27 16:37:20 +08:00
parent bf06677cad
commit 422382a732

View File

@ -488,7 +488,6 @@ export default {
}, },
methods: { methods: {
handleBeforeUnload(event) { handleBeforeUnload(event) {
console.log(this.sessionId,'this.sessionId')
// //
if(this.calling){ if(this.calling){
window.tccc.Call.hungUp({sessionId: this.sessionId}) window.tccc.Call.hungUp({sessionId: this.sessionId})
@ -600,15 +599,8 @@ export default {
// } // }
// }) // })
}, },
handleBack() { async handleBack() {
if(this.timerInterval) { // try {
clearInterval(this.timerInterval); //
}
if (this.videoCallInterval) {
clearInterval(this.videoCallInterval)
}
this.handleBeforeUnload()
setTimeout(() => {
if(this.timerInterval) { // if(this.timerInterval) { //
clearInterval(this.timerInterval); // clearInterval(this.timerInterval); //
} }
@ -616,10 +608,11 @@ export default {
clearInterval(this.videoCallInterval) clearInterval(this.videoCallInterval)
} }
if(this.calling){ if(this.calling){
window.tccc.Call.hungUp({sessionId: this.sessionId}) let res = await window.tccc.Call.hungUp({sessionId: this.sessionId})
} }
this.$router.push('/mediation-management') this.$router.push('/mediation-management')
}, 500); } catch (err) {}
// this.$route.query.sourcePage == 'mediationManagement' // this.$route.query.sourcePage == 'mediationManagement'
// this.$router.push('/mediation-management') // this.$router.push('/mediation-management')
}, },