解决播放解析视频后再打开,因为没有时间记录而报错的问题

This commit is contained in:
haiyangcui
2020-12-24 16:06:56 +01:00
parent 1f65e5ba0a
commit 06291ffc4b

View File

@@ -121,7 +121,7 @@
<span></span>
<input type="button" value="重置" @click="() => { startPosition.min = startPosition.sec = endPosition.min = endPosition.sec = '00'; this.clearPosition() }">
</span>
<span class="last-tip" v-if="!video.key && right.history.length > 0" @click="historyItemEvent(right.history[0])">
<span class="last-tip" v-if="!video.key && right.history.length > 0 && right.history[0].time" @click="historyItemEvent(right.history[0])">
上次播放到:{{right.history[0].site}}{{right.history[0].name}} {{right.history[0].index+1}} {{fmtMSS(right.history[0].time.toFixed(0))}}/{{fmtMSS(right.history[0].duration.toFixed(0))}}</span>
</div>
<div class="more" v-if="video.iptv" :key="Boolean(video.iptv)">