From fa67ad03d208d71cf3703c4898314e2242968e17 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Thu, 27 Aug 2020 15:03:28 +0200 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=92=AD=E6=94=BE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=94=B6=E8=97=8F=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 165a0af..84674ea 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -471,21 +471,18 @@ export default { if (res) { this.$message.info('已存在') } else { - // Get detail - zy.detail(this.video.key, info.id).then(detailRes => { - const doc = { - key: this.video.key, - ids: info.id, - name: detailRes.name, - type: detailRes.type, - year: detailRes.year, - last: detailRes.last, - note: detailRes.note - } - star.add(doc).then(starRes => { - this.$message.success('收藏成功') - this.isStar = true - }) + const doc = { + key: this.video.key, + ids: info.id, + name: info.name, + type: info.type, + year: info.year, + last: info.last, + note: info.note + } + star.add(doc).then(starRes => { + this.$message.success('收藏成功') + this.isStar = true }) } }).catch(() => {