更新分享设备权限
This commit is contained in:
@@ -203,9 +203,12 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
||||
}
|
||||
|
||||
// 标签切换回调
|
||||
void _onTabChanged(int index) {
|
||||
Future<void> _onTabChanged(int index) async {
|
||||
_pageController.animateToPage(index,
|
||||
duration: const Duration(milliseconds: 300), curve: Curves.easeInOut);
|
||||
BodyDeviceController deviceController = Get.find();
|
||||
await deviceController.getDeviceList();
|
||||
await deviceController.getSleepReport();
|
||||
}
|
||||
|
||||
// 页面切换回调
|
||||
|
||||
Reference in New Issue
Block a user