主页睡眠信息点击跳转页面修改
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user