Explorar el Código

退出断开IM

wolyshaw hace 3 años
padre
commit
5321b22471
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/components/live-broadcast/runtime.ts

+ 2 - 0
src/components/live-broadcast/runtime.ts

@@ -564,5 +564,7 @@ export const leaveIMRoom = async () => {
     // @ts-ignore
     await runtime.rtcClient?.leaveRoom(runtime.joinedRoom)
     runtime.joinedRoom = null
+    RongIMLib.disconnect()
+    runtime.imConnectStatus = 'disconnect'
   }
 }