修改bug
This commit is contained in:
parent
bf06677cad
commit
422382a732
@ -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,26 +599,20 @@ 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){
|
||||||
if(this.timerInterval) { //如果定时器还在运行 或者直接关闭,不用判断
|
let res = await window.tccc.Call.hungUp({sessionId: this.sessionId})
|
||||||
clearInterval(this.timerInterval); //关闭
|
}
|
||||||
}
|
|
||||||
if (this.videoCallInterval) {
|
|
||||||
clearInterval(this.videoCallInterval)
|
|
||||||
}
|
|
||||||
if(this.calling){
|
|
||||||
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')
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user