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] } } },