更新验证码选择区号
This commit is contained in:
@@ -207,6 +207,15 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
||||
_pageController.animateToPage(index,
|
||||
duration: const Duration(milliseconds: 300), curve: Curves.easeInOut);
|
||||
BodyDeviceController deviceController = Get.find();
|
||||
|
||||
if (index == 0) {
|
||||
deviceController.model.type = 1;
|
||||
homeController.model.type = 1;
|
||||
} else if (index == 1) {
|
||||
deviceController.model.type = 2;
|
||||
homeController.model.type = 2;
|
||||
}
|
||||
deviceController.updateAll();
|
||||
await deviceController.getDeviceList();
|
||||
await deviceController.getSleepReport();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user