更新短信第二次登录报错的问题

This commit is contained in:
wyf
2025-06-18 09:20:11 +08:00
parent f3f3e4f73f
commit 81689d2fe8
4 changed files with 94 additions and 26 deletions

View File

@@ -117,9 +117,9 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
});
}
WidgetsBinding.instance.addPostFrameCallback((_) {
if (homeController.sleepDays.value.isNotEmpty) {
if (homeController.homeSleepDays.value.isNotEmpty) {
homeController.selectedDayIndex.value =
homeController.sleepDays.value.length - 1;
homeController.homeSleepDays.value.length - 1;
}
});
Get.until((route) =>
@@ -347,9 +347,9 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
});
}
WidgetsBinding.instance.addPostFrameCallback((_) {
if (homeController.sleepDays.value.isNotEmpty) {
if (homeController.homeSleepDays.value.isNotEmpty) {
homeController.selectedDayIndex.value =
homeController.sleepDays.value.length - 1;
homeController.homeSleepDays.value.length - 1;
}
});
Get.until((route) =>