From 96678bf5df60c5242f76e9d691d28f7861614cbf Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Wed, 23 Dec 2020 14:30:05 +0100 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9C=89=E5=BD=93xg-btn-showhistory?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=97=B6,=E6=89=8D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=AE=83=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 435e8d2..0b76cb7 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -569,8 +569,8 @@ export default { }, playVideo (index = 0, time = 0) { this.isLive = false - document.querySelector('xg-btn-showhistory').style.display = 'block' - document.querySelector('.xgplayer-playbackrate').style.display = 'inline-block' + if (document.querySelector('xg-btn-showhistory')) document.querySelector('xg-btn-showhistory').style.display = 'block' + if (document.querySelector('.xgplayer-playbackrate')) document.querySelector('.xgplayer-playbackrate').style.display = 'inline-block' this.fetchM3u8List().then(m3u8Arr => { const url = m3u8Arr[index] if (!m3u8Arr[index].endsWith('.m3u8')) {