Merge branch 'main' of http://139.155.124.81:8088/cloud-mediate/mediate-manage-web into main
This commit is contained in:
commit
a56dc745ca
@ -481,16 +481,15 @@ export default {
|
|||||||
if (this.videoCallInterval) {
|
if (this.videoCallInterval) {
|
||||||
clearInterval(this.videoCallInterval)
|
clearInterval(this.videoCallInterval)
|
||||||
}
|
}
|
||||||
|
if(this.calling){
|
||||||
|
window.tccc.Call.hungUp({sessionId: this.sessionId})
|
||||||
|
}
|
||||||
window.removeEventListener('beforeunload', this.handleBeforeUnload);
|
window.removeEventListener('beforeunload', this.handleBeforeUnload);
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleBeforeUnload(event) {
|
handleBeforeUnload(event) {
|
||||||
console.log(this.sessionId,'this.sessionId')
|
|
||||||
// 刷新及离开挂断电话
|
// 刷新及离开挂断电话
|
||||||
if(this.sessionId !='')
|
if(this.calling){
|
||||||
{
|
|
||||||
console.log('刷新及离开挂断电话')
|
|
||||||
window.tccc.Call.hungUp({sessionId: this.sessionId})
|
window.tccc.Call.hungUp({sessionId: this.sessionId})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -600,17 +599,22 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
handleBack() {
|
async handleBack() {
|
||||||
if(this.timerInterval) { //如果定时器还在运行 或者直接关闭,不用判断
|
try {
|
||||||
clearInterval(this.timerInterval); //关闭
|
if(this.timerInterval) { //如果定时器还在运行 或者直接关闭,不用判断
|
||||||
}
|
clearInterval(this.timerInterval); //关闭
|
||||||
if (this.videoCallInterval) {
|
}
|
||||||
clearInterval(this.videoCallInterval)
|
if (this.videoCallInterval) {
|
||||||
}
|
clearInterval(this.videoCallInterval)
|
||||||
this.handleBeforeUnload()
|
}
|
||||||
setTimeout(() => {
|
if(this.calling){
|
||||||
this.$router.push('/mediation-management')
|
let res = await window.tccc.Call.hungUp({sessionId: this.sessionId})
|
||||||
}, 500);
|
console.log('挂断电话', res)
|
||||||
|
this.$router.push('/mediation-management')
|
||||||
|
} else {
|
||||||
|
this.$router.push('/mediation-management')
|
||||||
|
}
|
||||||
|
} catch (err) {}
|
||||||
// this.$route.query.sourcePage == 'mediationManagement'
|
// this.$route.query.sourcePage == 'mediationManagement'
|
||||||
// this.$router.push('/mediation-management')
|
// this.$router.push('/mediation-management')
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user