修复播放和历史页面无法分享的bug

This commit is contained in:
buvta
2020-12-31 23:27:25 +08:00
parent a7f0030462
commit df867fa919
3 changed files with 4 additions and 12 deletions

View File

@@ -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) {

View File

@@ -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 () {

View File

@@ -89,7 +89,7 @@ export default {
this.DetailCache[cacheKey] = res
}
if (res) {
return res.fullList[0].list[1]
return res.fullList[0].list[0]
}
}
},