From 4e5aab6f66c16178a82c2852879d4f75ed926f50 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sun, 3 Jan 2021 22:22:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=92=AD=E6=94=BE=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E7=94=9F=E6=88=90=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 001d263..39f359c 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -914,11 +914,12 @@ export default { index: this.video.info.index } }, - issueEvent () { + async issueEvent () { + const currentSite = await sites.find({ key: this.video.key }) const info = { - video: this.video, - list: this.right.list, - playlist: VIDEO_DETAIL_CACHE[this.video.key + '@' + this.video.info.id] || [], + video: Object.assign(this.video.info, { site: currentSite, detail: this.DetailCache[this.video.key + '@' + this.video.info.id] }), + playlist: this.right.list.map(e => e.split('$')[1]), + playerType: this.onlineUrl ? '在线解析' : this.playerType, playerError: this.xg.error || '', playerState: this.xg.readyState || '', networkState: this.xg.networkState || ''