主页睡眠信息点击跳转页面修改

This commit is contained in:
czz
2025-09-12 15:58:09 +08:00
parent b828079c42
commit 6662051feb
3 changed files with 8 additions and 35 deletions

View File

@@ -38,13 +38,12 @@ class SleepReportController extends GetControllerEx<SleepReportModel> {
RxString mac = "".obs;
// 日历选择的日期
RxInt date = 0.obs;
// 初始化方法(外部跳转时调用)
void initParams({String? macValue, int? dateValue}) {
if (macValue != null) mac.value = macValue;
if (dateValue != null) {
date.value = dateValue;
selectedDate.value = DateTime.fromMillisecondsSinceEpoch(dateValue);
}
}