From bbeb75631d5284cd7892c4dc974d9b0148a00aab Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sat, 12 Dec 2020 13:39:44 +0100 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80ZY,=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E7=9A=84=E8=AF=9D,=E6=88=96=E8=80=85?= =?UTF-8?q?=E6=98=AF=E8=A7=86=E9=A2=91=E5=81=9C=E6=AD=A2=E5=90=8E=E5=86=8D?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=92=AD=E6=94=BE=E7=9A=84=E8=AF=9D,?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=9C=80=E8=BF=91=E7=9A=84=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 31a0daa..5e81249 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -470,7 +470,6 @@ export default { time[key] = '00' } else if (time[key].length > 2) { time[key] = '' + parseInt(time[key]) - // time[key] = time[key].replace(/^0+/, '') } else if (time[key] < 10 && time[key].length === 1) { time[key] = '0' + time[key] } @@ -1394,6 +1393,15 @@ export default { this.xg.on('exitFullscreen', () => { document.querySelector('.xg-view-videoTitle').style.display = 'none' }) + + this.xg.on('play', () => { + if (!this.video.key && !this.video.info.ids) { + // 如果当前播放页面的播放信息没有被赋值,播放历史记录 + var historyItem = this.right.history[0] + this.video = { key: historyItem.site, info: { id: historyItem.ids, name: historyItem.name, index: historyItem.index } } + this.getUrls() + } + }) }, videoStop () { win.setProgressBar(-1)