mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-05 20:44:52 +08:00
打开换源页面时,记录当前时间,换源时使用该时间。否则,如果换源失败,this.xg.currentTime 会被重置为0
This commit is contained in:
@@ -202,7 +202,8 @@ export default {
|
||||
list: [],
|
||||
history: [],
|
||||
shortcut: [],
|
||||
other: []
|
||||
other: [],
|
||||
currentTime: 0
|
||||
},
|
||||
config: {
|
||||
id: 'xgplayer',
|
||||
@@ -781,10 +782,11 @@ export default {
|
||||
this.right.type = 'other'
|
||||
this.getOtherSites()
|
||||
this.right.show = true
|
||||
this.right.currentTime = this.xg.currentTime
|
||||
},
|
||||
async otherItemEvent (e) {
|
||||
// 打开当前播放的剧集index, 定位到当前的时间
|
||||
this.video = { key: e.key, info: { id: e.id, name: e.name, site: e.site, index: this.video.info.index, time: this.xg.currentTime } }
|
||||
this.video = { key: e.key, info: { id: e.id, name: e.name, site: e.site, index: this.video.info.index, time: this.right.currentTime } }
|
||||
},
|
||||
mtEvent () {
|
||||
setting.find().then(res => {
|
||||
|
||||
Reference in New Issue
Block a user