2
0
Просмотр исходного кода

💄 style(components): replace wechat icon with antd filled version

- 从lucide-react切换到@ant-design/icons的WechatFilled图标

🐛 fix(mobile): correct wechat login failure redirect path

- 将登录失败后的重定向路径从/mobile/auth修改为/mobile/login
- 优化WechatCallbackPage组件的依赖数组,移除不必要的依赖项
yourname 6 месяцев назад
Родитель
Сommit
2fbf70fe37

+ 1 - 1
src/client/components/WechatLoginButton.tsx

@@ -1,6 +1,6 @@
 import React from 'react';
 import { Button } from '@/client/components/ui/button';
-import { Wechat } from 'lucide-react';
+import { WechatFilled as Wechat } from '@ant-design/icons';
 import { wechatAuthClient } from '@/client/api';
 import { toast } from 'sonner';
 

+ 2 - 2
src/client/mobile/pages/WechatCallbackPage.tsx

@@ -55,13 +55,13 @@ const WechatCallbackPage: React.FC = () => {
         toast.error('微信登录失败,请重试');
         
         setTimeout(() => {
-          navigate('/mobile/auth', { replace: true });
+          navigate('/mobile/login', { replace: true });
         }, 3000);
       }
     };
 
     handleWechatCallback();
-  }, [searchParams, navigate, loginWithToken]);
+  }, []);
 
   const getStatusIcon = () => {
     switch (status) {