feat: 增加掉线处理

master
xjs 2025-04-11 16:55:15 +08:00
parent 1c1f281789
commit 4d12fcf2b9
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ export const useSignalRConnection = (params: { access_token: string; roomId: str
connection.on("ForceOffline", function (msg) { connection.on("ForceOffline", function (msg) {
// 可加逻辑:注销用户、跳转登录页等 // 可加逻辑:注销用户、跳转登录页等
Message.warning(msg)
leaveRoom() leaveRoom()
}); });