feat: 更新应用配置和引入新依赖
- 修改 app.json,禁用平板支持以优化用户体验 - 在 package.json 和 package-lock.json 中新增 react-native-toast-message 依赖,支持消息提示功能 - 在多个组件中集成 Toast 组件,提升用户交互反馈 - 更新训练计划相关逻辑,优化状态管理和数据处理 - 调整样式以适应新功能的展示和交互
This commit is contained in:
@@ -64,7 +64,7 @@ export function useAuthGuard() {
|
||||
await dispatch(logoutAction()).unwrap();
|
||||
|
||||
// 跳转到登录页面
|
||||
router.replace('/auth/login');
|
||||
router.push('/auth/login');
|
||||
} catch (error) {
|
||||
console.error('退出登录失败:', error);
|
||||
Alert.alert('错误', '退出登录失败,请稍后重试');
|
||||
@@ -105,7 +105,7 @@ export function useAuthGuard() {
|
||||
Alert.alert('账号已注销', '您的账号已成功注销', [
|
||||
{
|
||||
text: '确定',
|
||||
onPress: () => router.replace('/auth/login'),
|
||||
onPress: () => router.push('/auth/login'),
|
||||
},
|
||||
]);
|
||||
} catch (error: any) {
|
||||
|
||||
Reference in New Issue
Block a user