diff --git a/lib/core/widgets/common_bottom_nav.dart b/lib/core/widgets/common_bottom_nav.dart index 4a7e0dbad..04c9d5b31 100644 --- a/lib/core/widgets/common_bottom_nav.dart +++ b/lib/core/widgets/common_bottom_nav.dart @@ -18,6 +18,7 @@ class CommonBottomNav extends StatelessWidget { currentIndex: currentIndex, onTap: (index) { // Navigate to the appropriate page based on index + if(index ==currentIndex) return;//如果是当前页面,不跳转 switch (index) { case 0: Get.offAllNamed(Routes.home);