From fa9f85a177e022c122b8fdaee5b84e1a0119945f Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Thu, 27 Aug 2020 13:31:02 +0200 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8star.key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Star.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Star.vue b/src/components/Star.vue index f3f2814..979d415 100644 --- a/src/components/Star.vue +++ b/src/components/Star.vue @@ -85,7 +85,7 @@ export default { detailEvent (e) { this.detail = { show: true, - key: e.site.key, + key: e.key, info: { id: e.ids, name: e.name @@ -94,11 +94,11 @@ export default { this.clearHasUpdateFlag(e) }, playEvent (e) { - history.find({ site: e.site.key, ids: e.ids }).then(res => { + history.find({ site: e.key, ids: e.ids }).then(res => { if (res) { - this.video = { key: res.site, info: { id: res.ids, name: res.name, index: res.index, site: e.site } } + this.video = { key: res.key, info: { id: res.ids, name: res.name, index: res.index, site: e.key } } } else { - this.video = { key: e.site.key, info: { id: e.ids, name: e.name, index: 0, site: e.site } } + this.video = { key: e.key, info: { id: e.ids, name: e.name, index: 0, site: e.key } } } }) this.clearHasUpdateFlag(e) @@ -117,7 +117,7 @@ export default { shareEvent (e) { this.share = { show: true, - key: e.site.key, + key: e.key, info: e } }, @@ -129,17 +129,17 @@ export default { }) }, updateEvent (e) { - zy.detail(e.site.key, e.ids).then(res => { + zy.detail(e.key, e.ids).then(res => { if (e.last === res.last) { var msg = `同步"${e.name}"成功, 未查询到更新。` this.$message.info(msg) } else { const doc = { + key: e.key, id: e.id, ids: res.id, last: res.last, name: res.name, - site: e.site, type: res.type, year: res.year, note: res.note, @@ -162,7 +162,7 @@ export default { }) }, downloadEvent (e) { - zy.download(e.site.key, e.ids).then(res => { + zy.download(e.key, e.ids).then(res => { if (res) { const text = res.dl.dd._t if (text) {