tremble 3 年之前
父節點
當前提交
db8ea579e4
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/components/RTC/index.vue

+ 4 - 2
src/components/RTC/index.vue

@@ -53,8 +53,10 @@ const confirmDialog = async () => {
 
     }
 
-    socket.value.close();
-    store.commit("rtc/setSocket", null);
+    setTimeout(() => {
+      socket.value.close();
+      store.commit("rtc/setSocket", null);
+    }, 100);
   }
 
   store.commit("rtc/setIsJoined", false);