修改bug
This commit is contained in:
parent
bf06677cad
commit
422382a732
@ -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')
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user