feat: 更新睡眠详情页面,集成真实睡眠数据生成逻辑,优化睡眠阶段图表展示,添加睡眠样本数据处理功能,提升用户体验
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user