feat: 更新睡眠详情页面,集成真实睡眠数据生成逻辑,优化睡眠阶段图表展示,添加睡眠样本数据处理功能,提升用户体验

This commit is contained in:
richarjiang
2025-09-08 19:26:02 +08:00
parent bf3304eb06
commit 1de4b9fe4c
3 changed files with 270 additions and 48 deletions

View File

@@ -163,10 +163,10 @@ async function executeBackgroundTasks(): Promise<void> {
}
// 执行喝水提醒检查任务
executeWaterReminderTask();
await executeWaterReminderTask();
// 执行站立提醒检查任务
executeStandReminderTask();
await executeStandReminderTask();
console.log('后台任务执行完成');
} catch (error) {
@@ -200,7 +200,9 @@ export class BackgroundTaskManager {
try {
// 注册后台任务
const status = await BackgroundTask.registerTaskAsync(BACKGROUND_TASK_IDENTIFIER);
const status = await BackgroundTask.registerTaskAsync(BACKGROUND_TASK_IDENTIFIER, {
minimumInterval: 15,
});
console.log('[BackgroundTask] 配置状态:', status);