|
@@ -289,10 +289,10 @@ export default {
|
|
|
];
|
|
];
|
|
|
this.realtimeRemaining = this.cycleLength;
|
|
this.realtimeRemaining = this.cycleLength;
|
|
|
|
|
|
|
|
- // 下周期方案:4个阶段,时长随机微调 ±3s
|
|
|
|
|
|
|
+ // 下周期方案:4个阶段,初始数据与实时方案相同
|
|
|
this.nextCycleDonutData = stages.map(s => ({
|
|
this.nextCycleDonutData = stages.map(s => ({
|
|
|
label: s.label,
|
|
label: s.label,
|
|
|
- value: Math.max(10, s.value + Math.floor(Math.random() * 7) - 3),
|
|
|
|
|
|
|
+ value: s.value,
|
|
|
color: s.color
|
|
color: s.color
|
|
|
}));
|
|
}));
|
|
|
},
|
|
},
|