From df867fa9192c25301a8d8d799ffd8eea606e8ff6 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Thu, 31 Dec 2020 23:27:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=92=AD=E6=94=BE=E5=92=8C?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/History.vue | 12 ++---------- src/components/Play.vue | 2 +- src/components/Share.vue | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/components/History.vue b/src/components/History.vue index bec59c8..b5f30e9 100644 --- a/src/components/History.vue +++ b/src/components/History.vue @@ -172,14 +172,6 @@ export default { set (val) { this.SET_SETTING(val) } - }, - DetailCache: { - get () { - return this.$store.getters.getDetailCache - }, - set (val) { - this.SET_DetailCache(val) - } } }, watch: { @@ -192,7 +184,7 @@ export default { } }, methods: { - ...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE', 'SET_SETTING', 'SET_DetailCache']), + ...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE', 'SET_SETTING']), fmtMSS (s) { return (s - (s %= 60)) / 60 + (s > 9 ? ':' : ':0') + s }, @@ -246,7 +238,7 @@ export default { this.share = { show: true, key: e.site, - info: e + info: e.detail } }, downloadEvent (e) { diff --git a/src/components/Play.vue b/src/components/Play.vue index 92b63a1..25c1ef1 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -904,7 +904,7 @@ export default { this.share = { show: true, key: this.video.key, - info: this.video.info + info: this.DetailCache[this.video.key + '@' + this.video.info.id] } }, issueEvent () { diff --git a/src/components/Share.vue b/src/components/Share.vue index 11f4540..487eede 100644 --- a/src/components/Share.vue +++ b/src/components/Share.vue @@ -89,7 +89,7 @@ export default { this.DetailCache[cacheKey] = res } if (res) { - return res.fullList[0].list[1] + return res.fullList[0].list[0] } } },