feat: 微信登陆逻辑调整

This commit is contained in:
zdl
2025-10-15 22:56:28 +08:00
parent 3f873a1b6e
commit 94cfec611b

View File

@@ -265,7 +265,12 @@ export default function WechatRegister() {
justifyContent="center"
>
{/* 灰色二维码底图 - 始终显示 */}
<Icon as={FaQrcode} w={24} h={24} color="gray.300" />
{/* 根据 wechatStatus 渲染不同的内容 */}
{wechatStatus === WECHAT_STATUS.WAITING ? (
<Image src={wechatAuthUrl} alt="微信二维码" boxSize="24" />
) : (
<Icon as={FaQrcode} w={24} h={24} color="gray.300" />
)}
{/* 加载动画 */}
{isLoading && (