From c9818b57dc0eb13396790606f80bb483af97d2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Wed, 5 Nov 2025 17:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=20=E7=90=83=E5=B1=80?= =?UTF-8?q?=E8=AF=A6=E6=83=85=20=E6=BB=A1=E5=91=98=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game_pages/detail/components/StickyBottom/index.tsx | 7 +++++-- src/home_pages/index.tsx | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game_pages/detail/components/StickyBottom/index.tsx b/src/game_pages/detail/components/StickyBottom/index.tsx index df270b6..40ec7ad 100644 --- a/src/game_pages/detail/components/StickyBottom/index.tsx +++ b/src/game_pages/detail/components/StickyBottom/index.tsx @@ -20,9 +20,11 @@ function isFull(counts) { current_substitute_count, is_substitute_supported, } = counts; - if (max_players === current_players) { + + if (max_players === current_players &&is_substitute_supported === IsSubstituteSupported.NOTSUPPORT) { return true; - } else if (is_substitute_supported === IsSubstituteSupported.SUPPORT) { + } + else if (max_players === current_players &&is_substitute_supported === IsSubstituteSupported.SUPPORT) { return max_substitute_players === current_substitute_count; } @@ -111,6 +113,7 @@ export default function StickyButton(props) { is_substituting, waiting_start, } = user_action_status || {}; + if (MATCH_STATUS.CANCELED === match_status) { return { text: "活动已取消", diff --git a/src/home_pages/index.tsx b/src/home_pages/index.tsx index b6ab81d..25a8fe8 100644 --- a/src/home_pages/index.tsx +++ b/src/home_pages/index.tsx @@ -7,6 +7,7 @@ import "./index.scss"; const HomePage: React.FC = () => { const { fetchUserInfo } = useUserActions(); + useEffect(() => { const handleLoginRedirect = async () => { const login_status = check_login_status();