From b6d723333c105f25ec95328132395a99362b92a5 Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 22 Jan 2026 01:42:46 -0800 Subject: [PATCH] =?UTF-8?q?fix(mining-app):=20=E4=BF=AE=E5=A4=8D=20BatchMi?= =?UTF-8?q?ningRecordsPage=20=E7=B1=BB=E5=90=8D=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将页面类重命名为 BatchMiningRecordsListPage 以避免与实体类冲突 Co-Authored-By: Claude Opus 4.5 --- frontend/mining-app/lib/core/router/app_router.dart | 2 +- .../pages/profile/batch_mining_records_page.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/mining-app/lib/core/router/app_router.dart b/frontend/mining-app/lib/core/router/app_router.dart index 2333579c..1301e783 100644 --- a/frontend/mining-app/lib/core/router/app_router.dart +++ b/frontend/mining-app/lib/core/router/app_router.dart @@ -122,7 +122,7 @@ final appRouterProvider = Provider((ref) { ), GoRoute( path: Routes.batchMiningRecords, - builder: (context, state) => const BatchMiningRecordsPage(), + builder: (context, state) => const BatchMiningRecordsListPage(), ), GoRoute( path: Routes.plantingRecords, diff --git a/frontend/mining-app/lib/presentation/pages/profile/batch_mining_records_page.dart b/frontend/mining-app/lib/presentation/pages/profile/batch_mining_records_page.dart index 822c0b47..d7cd9556 100644 --- a/frontend/mining-app/lib/presentation/pages/profile/batch_mining_records_page.dart +++ b/frontend/mining-app/lib/presentation/pages/profile/batch_mining_records_page.dart @@ -8,14 +8,14 @@ import '../../providers/user_providers.dart'; import '../../providers/mining_providers.dart'; /// 补发记录页面 -class BatchMiningRecordsPage extends ConsumerStatefulWidget { - const BatchMiningRecordsPage({super.key}); +class BatchMiningRecordsListPage extends ConsumerStatefulWidget { + const BatchMiningRecordsListPage({super.key}); @override - ConsumerState createState() => _BatchMiningRecordsPageState(); + ConsumerState createState() => _BatchMiningRecordsListPageState(); } -class _BatchMiningRecordsPageState extends ConsumerState { +class _BatchMiningRecordsListPageState extends ConsumerState { static const Color _orange = Color(0xFFFF6B00); static const Color _green = Color(0xFF22C55E); static const Color _grayText = Color(0xFF6B7280);