修改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: {
handleBeforeUnload(event) {
console.log(this.sessionId,'this.sessionId')
//
if(this.calling){
window.tccc.Call.hungUp({sessionId: this.sessionId})
@ -600,26 +599,20 @@ export default {
// }
// })
},
handleBack() {
if(this.timerInterval) { //
clearInterval(this.timerInterval); //
}
if (this.videoCallInterval) {
clearInterval(this.videoCallInterval)
}
this.handleBeforeUnload()
setTimeout(() => {
if(this.timerInterval) { //
clearInterval(this.timerInterval); //
}
if (this.videoCallInterval) {
clearInterval(this.videoCallInterval)
}
if(this.calling){
window.tccc.Call.hungUp({sessionId: this.sessionId})
}
async handleBack() {
try {
if(this.timerInterval) { //
clearInterval(this.timerInterval); //
}
if (this.videoCallInterval) {
clearInterval(this.videoCallInterval)
}
if(this.calling){
let res = await window.tccc.Call.hungUp({sessionId: this.sessionId})
}
this.$router.push('/mediation-management')
}, 500);
} catch (err) {}
// this.$route.query.sourcePage == 'mediationManagement'
// this.$router.push('/mediation-management')
},