feat: 增加掉线处理
parent
1c1f281789
commit
4d12fcf2b9
|
|
@ -32,6 +32,7 @@ export const useSignalRConnection = (params: { access_token: string; roomId: str
|
|||
|
||||
connection.on("ForceOffline", function (msg) {
|
||||
// 可加逻辑:注销用户、跳转登录页等
|
||||
Message.warning(msg)
|
||||
leaveRoom()
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue