feat: 登陆注册UI调整,用户协议和隐私政策跳转调整
This commit is contained in:
@@ -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');
|
||||
// 不再跳转,用户留在当前页面
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user