Skip to content

Commit

Permalink
Merge pull request #92 from our-mini-games/feat-Chinese-chess
Browse files Browse the repository at this point in the history
fix: 类型错误 any保平安
  • Loading branch information
humandetail authored Jan 5, 2024
2 parents 5fa6928 + a90e56a commit 77441b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Chinese-chess/src/pages/OnlineGame/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const socketHandler = (socket: Socket) => {
socket.on(events.user.update, (user) => {
currentUser.value = user
// 将用户和当前 socket 连接绑定
currentUser.value!.socketId = socket.id
currentUser.value!.socketId = socket.id as any
localStorage.setItem(USER_INFO_KEY, JSON.stringify(user))
if (user.roomId) {
Expand Down

0 comments on commit 77441b6

Please sign in to comment.