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

跳转当前时间bug修复

parent 8603f28b
...@@ -115,8 +115,9 @@ class DogTrack extends Component { ...@@ -115,8 +115,9 @@ class DogTrack extends Component {
this.trackData = Array.from(data); this.trackData = Array.from(data);
//播放时间跳转到第一帧时间 //播放时间跳转到第一帧时间
setTimeout(() => { setTimeout(() => {
if (dogIds && dogIds.has(currentDogId)) { const numberDogId = Number(currentDogId)
this.player_.currentTime((dogIds.get(currentDogId) * 40 - 30) / 1000) if (dogIds && dogIds.has(numberDogId)) {
this.player_.currentTime((dogIds.get(numberDogId) * 40 - 30) / 1000)
} }
}, 100); }, 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