恢复播放页面的收藏逻辑

This commit is contained in:
haiyangcui
2020-08-27 15:03:28 +02:00
parent 8a196ae52a
commit fa67ad03d2

View File

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