修改bug

This commit is contained in:
liuxi 2025-02-26 18:57:37 +08:00
parent efd4ea4bca
commit b7c322a8e6

View File

@ -486,9 +486,11 @@ export default {
}, },
methods: { methods: {
handleBeforeUnload(event) { handleBeforeUnload(event) {
console.log(this.sessionId,'this.sessionId')
// //
if(this.sessionId !='') if(this.sessionId !='')
{ {
console.log('刷新及离开挂断电话')
window.tccc.Call.hungUp({sessionId: this.sessionId}) window.tccc.Call.hungUp({sessionId: this.sessionId})
} }
}, },
@ -599,8 +601,12 @@ export default {
// }) // })
}, },
handleBack() { handleBack() {
this.handleBeforeUnload()
setTimeout(() => {
this.$router.push('/mediation-management')
}, 1000);
// this.$route.query.sourcePage == 'mediationManagement' // this.$route.query.sourcePage == 'mediationManagement'
this.$router.push('/mediation-management') // this.$router.push('/mediation-management')
}, },
// //
getmediate_record() { getmediate_record() {