Skip to content

Commit

Permalink
fix: 类型错误 any保平安
Browse files Browse the repository at this point in the history
  • Loading branch information
humandetail committed Jan 5, 2024
1 parent bb332ed commit a90e56a
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 a90e56a

Please sign in to comment.