feat: 登陆注册UI调整,用户协议和隐私政策跳转调整

This commit is contained in:
zdl
2025-10-15 11:03:00 +08:00
parent 29816de72b
commit 4e9acd12c2
18 changed files with 3068 additions and 49 deletions

View File

@@ -455,15 +455,14 @@ export const AuthProvider = ({ children }) => {
isClosable: true,
});
// 跳转到登录页面
navigate('/auth/signin');
// 不再跳转,用户留在当前页面
} catch (error) {
console.error('Logout error:', error);
// 即使API调用失败也清除本地状态
setUser(null);
setIsAuthenticated(false);
navigate('/auth/signin');
// 不再跳转,用户留在当前页面
}
};