From 0d8a5acabca25a3fedb87d0ffc94fad671c1a4aa Mon Sep 17 00:00:00 2001 From: JianMiau Date: Thu, 7 Dec 2023 11:06:11 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E6=A9=9F=E5=8F=B0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=8F=AF=E6=BB=91=E5=8B=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Lobby/SlotList.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/UI/Lobby/SlotList.tsx b/src/UI/Lobby/SlotList.tsx index edea90c..04b2bbc 100644 --- a/src/UI/Lobby/SlotList.tsx +++ b/src/UI/Lobby/SlotList.tsx @@ -39,7 +39,10 @@ const SlotList = () => { ...gameData, nowSlotId: slotId }); - if (componyID === BusinessEnum.ComponyType[BusinessEnum.ServerType[BusinessTypeSetting.UseServerType]]) { + const UseServerType = BusinessTypeSetting.UseServerType; + const ServerType = BusinessEnum.ServerType[UseServerType]; + const SDType = BusinessEnum.ComponyType[ServerType]; + if (componyID === SDType) { setGameUrl(url); } else { @@ -67,7 +70,7 @@ const SlotList = () => { } :
- + {slotList.map((slotId: number, index: number) => { CoroutineV2.Single(onClickSlotIn(slotId)).Start(); }} style={{ cursor: "pointer" }} />