| | |
| | | if (nowTime.value) { |
| | | const timeParts = nowTime.value.split(" "); |
| | | const timeOnly = timeParts[1]; // 获取 "mm:ss" 部分 |
| | | console.log(nowTime.value, "nowTime.valuenowTime.value"); |
| | | return timeOnly; |
| | | } |
| | | }; |
| | |
| | | rainfallData.value = rainfallData.value.map((item) => ({ |
| | | ...item, |
| | | intensity: item.intensity * 60, |
| | | total: item.total * 60, |
| | | })); |
| | | } |
| | | |
| | |
| | | const startUpdating = () => { |
| | | if (updateInterval || dataIndex.value >= rainfallData.value.length) return; |
| | | |
| | | const totalDuration = 90000; // 90秒 |
| | | const totalDuration = simStore.frameNum * 1000; // 90秒 |
| | | const totalPoints = rainfallData.value.length; |
| | | const startTime = Date.now(); |
| | | |