ck@123911.net 1 mēnesi atpakaļ
vecāks
revīzija
0f13986d4e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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) {