From a90e56aeb85a1de99214c9862cad3cd1ba2f4ea6 Mon Sep 17 00:00:00 2001 From: laihanbin <512412344@qq.com> Date: Fri, 5 Jan 2024 16:18:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=20a?= =?UTF-8?q?ny=E4=BF=9D=E5=B9=B3=E5=AE=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/Chinese-chess/src/pages/OnlineGame/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Chinese-chess/src/pages/OnlineGame/index.vue b/packages/Chinese-chess/src/pages/OnlineGame/index.vue index af1634a..b88f6a9 100644 --- a/packages/Chinese-chess/src/pages/OnlineGame/index.vue +++ b/packages/Chinese-chess/src/pages/OnlineGame/index.vue @@ -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) {