From 305b6da760b7a7c7c21c1dbd0a8c728edb13f8e3 Mon Sep 17 00:00:00 2001 From: fanlin Date: Wed, 28 Jul 2021 11:30:23 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E6=88=91=E7=9A=84=E6=94=B6=E8=97=8F=20?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=94=B6=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/CollectionStandard.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/personal/pages/my-collection/components/CollectionStandard.vue b/src/pages/personal/pages/my-collection/components/CollectionStandard.vue index 2c38af157..1724579a5 100644 --- a/src/pages/personal/pages/my-collection/components/CollectionStandard.vue +++ b/src/pages/personal/pages/my-collection/components/CollectionStandard.vue @@ -62,7 +62,7 @@ 创建时间:{{getDate(item.creationTime)}} - 取消收藏 + 取消收藏 @@ -150,7 +150,7 @@ export default { }, e => {}) }, // 取消收藏 - cancelStandard (id) { + cancelStandard (item) { this.$confirm('确定取消收藏此数据?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -158,16 +158,18 @@ export default { confirmButtonClass: 'common-button-primary', roundButton: true }).then(() => { - var json = {} - json.userId = this.$store.getters.userInfo.userId - json.id = id - this.$http.postData('/sarPersonalCenter/sar-user-star/delete',json, { + // var json = { + // id: item.collectId + // } + // json.userId = this.$store.getters.userInfo.userId + this.$http.put('person/personCollect/updateByUserId',{'id': item.id}, { _this: this }, res => { if (res.ok) { this.$message.success('已取消收藏') this.contentOpen = false this.pageChange(1) + this.selectStandard() } }, e => { })