Browse Source

评论删除

ck@123911.net 1 tháng trước cách đây
mục cha
commit
0f13986d4e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      components/cc-comment/cc-comment.vue

+ 2 - 1
components/cc-comment/cc-comment.vue

@@ -355,10 +355,11 @@ export default {
 				params
 			}, (res) => {
 				uni.hideLoading();
+				// console.log("cc-comment",res);
 				// 拿到后端返回的id赋值, 因为删除要用到id
 				params = {
 					...params,
-					id: res.id
+					id: res.comment.id
 				};
 				// 新评论
 				if (this.isNewComment) {