😋 修复精简模式下切换视频无法保留历史记录的问题

This commit is contained in:
hunlongyu
2020-05-27 09:49:56 +08:00
parent 03c32d8ee2
commit 010b488340
6 changed files with 29 additions and 17 deletions

View File

@@ -92,6 +92,7 @@ export default {
this.xg.on('ended', () => {
if (this.d.m3u8_urls.length > 1 && (this.d.m3u8_urls.length - 1 > this.index)) {
this.video.currentTime = 0
this.video.index++
this.index++
let src = this.d.m3u8_urls[this.index]
src = src.split('$')[1]
@@ -122,6 +123,7 @@ export default {
if (res) {
const v = res
v.currentTime = this.xg.currentTime
v.index = this.index
const id = v.id
delete v.id
history.update(id, v)