From 6da877709dad7eeb7022ffec66db45c84464d606 Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 20 Aug 2025 15:32:49 +0800 Subject: [PATCH] style: display title when sso loading --- src/pages/login/components/login-form.tsx | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/pages/login/components/login-form.tsx b/src/pages/login/components/login-form.tsx index 58dc4afa..1ac8126b 100644 --- a/src/pages/login/components/login-form.tsx +++ b/src/pages/login/components/login-form.tsx @@ -12,6 +12,18 @@ import { useSSOAuth } from '../hooks/use-sso-auth'; import { checkDefaultPage } from '../utils'; import LocalUserForm from './local-user-form'; +const SpinContainer = styled.div` + display: flex; + flex-direction: column; + height: 300px; + .spin { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + } +`; + const Buttons = styled.div` display: flex; flex-direction: column; @@ -226,9 +238,14 @@ const LoginForm = () => { {contextHolder}
{isThirdPartyAuthHandling ? ( - -
-
+ + {renderWelCome()} +
+ +
+
+
+
) : ( <> {renderWelCome()}