diff --git a/src/components/Detail.vue b/src/components/Detail.vue index 23b0a97..ed883d2 100644 --- a/src/components/Detail.vue +++ b/src/components/Detail.vue @@ -121,9 +121,9 @@ export default { playEvent (n) { history.find({ site: this.detail.key, ids: this.detail.info.id }).then(res => { if (res) { - this.video = { key: res.site, info: { id: res.ids, name: res.name, index: n } } + this.video = { key: res.site, info: { id: res.ids, name: res.name, index: n, site: this.detail.site } } } else { - this.video = { key: this.detail.key, info: { id: this.detail.info.id, name: this.detail.info.name, index: n } } + this.video = { key: this.detail.key, info: { id: this.detail.info.id, name: this.detail.info.name, index: n, site: this.detail.site } } } }) diff --git a/src/components/Film.vue b/src/components/Film.vue index 11e9d15..24c4491 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -292,9 +292,9 @@ export default { playEvent (site, e) { history.find({ site: site.key, ids: e.id }).then(res => { if (res) { - this.video = { key: res.site, info: { id: res.ids, name: res.name, index: res.index } } + this.video = { key: res.site, info: { id: res.ids, name: res.name, index: res.index, site: site } } } else { - this.video = { key: site.key, info: { id: e.id, name: e.name, index: 0 } } + this.video = { key: site.key, info: { id: e.id, name: e.name, index: 0, site: site } } } }) this.view = 'Play' diff --git a/src/components/Play.vue b/src/components/Play.vue index 4263f5e..d28a3c7 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -461,14 +461,13 @@ export default { }, starEvent () { const info = this.video.info - this.$message.warning('video.key:' + this.video.key) star.find({ key: this.video.key, ids: info.id }).then(res => { if (res) { this.$message.info('已存在') } else { const docs = { key: this.video.key, - site: this.video.key, + site: this.video.site, ids: info.id, name: info.name, type: info.type, diff --git a/src/components/Star.vue b/src/components/Star.vue index d6ef016..f9fc4d1 100644 --- a/src/components/Star.vue +++ b/src/components/Star.vue @@ -93,9 +93,9 @@ export default { playEvent (e) { history.find({ site: e.site.key, ids: e.ids }).then(res => { if (res) { - this.video = { key: res.site, info: { id: res.ids, name: res.name, index: res.index } } + this.video = { key: res.site, info: { id: res.ids, name: res.name, index: res.index, site: e.site } } } else { - this.video = { key: e.site.key, info: { id: e.ids, name: e.name, index: 0 } } + this.video = { key: e.site.key, info: { id: e.ids, name: e.name, index: 0, site: e.site } } } }) this.view = 'Play'