Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed Jun 1, 2024
1 parent 075c987 commit 26137fd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/web-chat-x-vue/src/components/PeerVideoComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ onUnmounted(() => {
});
function hungUp() {
elDialogVisible.value = false;
if (peerManager.mediaConnect.value) {
peerManager.mediaConnect.value.close();
} else {
console.log(peerManager.mediaConnect, peerManager.mediaConnect.value);
}
nextTick(() => {
if (peerManager.mediaConnect.value) {
peerManager.mediaConnect.value.close();
} else {
console.log(peerManager.mediaConnect, peerManager.mediaConnect.value);
}
});
}
function reject() {
Expand Down

0 comments on commit 26137fd

Please sign in to comment.