Commit 9cdea5d6 authored by 朱松文's avatar 朱松文

跳转当前时间bug修复

parent 8603f28b
......@@ -115,8 +115,9 @@ class DogTrack extends Component {
this.trackData = Array.from(data);
//播放时间跳转到第一帧时间
setTimeout(() => {
if (dogIds && dogIds.has(currentDogId)) {
this.player_.currentTime((dogIds.get(currentDogId) * 40 - 30) / 1000)
const numberDogId = Number(currentDogId)
if (dogIds && dogIds.has(numberDogId)) {
this.player_.currentTime((dogIds.get(numberDogId) * 40 - 30) / 1000)
}
}, 100);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment