diff --git a/frontend/mining-app/lib/presentation/pages/splash/splash_page.dart b/frontend/mining-app/lib/presentation/pages/splash/splash_page.dart index 6d9f4e69..e9e65c3b 100644 --- a/frontend/mining-app/lib/presentation/pages/splash/splash_page.dart +++ b/frontend/mining-app/lib/presentation/pages/splash/splash_page.dart @@ -33,12 +33,11 @@ class _SplashPageState extends ConsumerState { final userState = ref.read(userNotifierProvider); if (userState.isLoggedIn) { - // 立即跳转,不等待 token 刷新 + // 已登录,直接跳转,不需要主动刷新 token + // token 刷新只在 API 返回 401 时才触发 if (mounted) { context.go(Routes.contribution); } - // 后台刷新 token,失败了由 API 拦截器处理 401 - ref.read(userNotifierProvider.notifier).refreshTokenIfNeeded(); } else { context.go(Routes.login); }