gemercheung 3 năm trước cách đây
mục cha
commit
b4f2ea526e
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/controller/room/index.js

+ 3 - 2
src/controller/room/index.js

@@ -128,8 +128,9 @@ export class RoomController extends BasicController {
         }
       }
       // 默认加入
-      // console.log("roomId", this.roomId);
-      // this.socket.join(this.roomId);
+      console.log("roomId", this.roomId);
+      this.socket.join(this.roomId);
+      
       const isInRoom = await isUserInRoom(this.roomId, this.user.userId);
       if (isInRoom) {
         if (Number(isInRoom.onlineStatus) === 0) {