mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-05 18:34:50 +08:00
再次解决恢复窗口不继续播放视频的问题
This commit is contained in:
@@ -130,7 +130,6 @@ export default {
|
||||
},
|
||||
async playEvent (n) {
|
||||
if (!this.playOnline) {
|
||||
console.log(this.detail)
|
||||
const db = await history.find({ site: this.detail.key, ids: this.detail.info.id })
|
||||
if (db) {
|
||||
this.video = { key: db.site, info: { id: db.ids, name: db.name, index: n, site: this.detail.site } }
|
||||
|
||||
@@ -1201,7 +1201,9 @@ export default {
|
||||
}
|
||||
})
|
||||
win.on('restore', () => {
|
||||
if (this.xg && this.xg.hasStart) {
|
||||
// 不知为何,在if clause里直接使用this.xg.hasStart居然就不工作,不得其解。
|
||||
var hasStart = this.xg.hasStart
|
||||
if (this.xg && hasStart) {
|
||||
this.xg.play()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user