浏览代码

update MSg

gemercheung 3 年之前
父节点
当前提交
b02066f759
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/service/msgService.js

+ 1 - 1
src/service/msgService.js

@@ -11,7 +11,7 @@ const createMessage = (roomId, user, msg) => {
   const msgObj = {
     userId: user.userId,
     nickname: user.nickname,
-    roomId: roomId,
+    roomId: user.roomId,
     msg: msg,
     createTime: Math.floor(Date.now() / 1000),
   };