浏览记录字段问题及代码优化
This commit is contained in:
@@ -120,15 +120,15 @@
|
||||
//收藏按钮
|
||||
starTap() {
|
||||
this.detailList.type = !this.detailList.type
|
||||
this.$apiServe.collect(this.id).then(res => {
|
||||
console.log('收藏成功', res.data)
|
||||
if (res.data.code == 1) {
|
||||
this.detailList.type = 1
|
||||
this.$toast.warn('收藏成功')
|
||||
} else {
|
||||
this.$toast.warn('收藏失败')
|
||||
}
|
||||
}).finally(_ => {})
|
||||
// this.$apiServe.collect(this.id).then(res => {
|
||||
// console.log('收藏成功', res.data)
|
||||
// if (res.data.code == 1) {
|
||||
// this.detailList.type = 1
|
||||
// this.$toast.warn('收藏成功')
|
||||
// } else {
|
||||
// this.$toast.warn('收藏失败')
|
||||
// }
|
||||
// }).finally(_ => {})
|
||||
},
|
||||
//点赞按钮
|
||||
heartTap() {
|
||||
|
||||
Reference in New Issue
Block a user