Преглед изворни кода

完成合并 完成评论bug

XSXS пре 1 месец
родитељ
комит
9a661aa480
2 измењених фајлова са 7 додато и 0 уклоњено
  1. 6 0
      components/CommentSection/CommentSection.vue
  2. 1 0
      components/cc-comment/cc-comment.vue

+ 6 - 0
components/CommentSection/CommentSection.vue

@@ -245,6 +245,12 @@ export default {
 						if (res.data.success === "yes") {
 							callback(res.data.comment);
 							this.loadCommentData(); // 重新加载评论列表
+						}else{
+							uni.showToast({
+								title: res.data.str,
+								icon: 'none'
+							});
+							this.loadCommentData();
 						}
 					},
 					fail: (e) => {

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

@@ -362,6 +362,7 @@ export default {
 				params
 			}, (res) => {
 				uni.hideLoading();
+				// console.log("cc-comment",res);
 				// 拿到后端返回的id赋值, 因为删除要用到id
 				params = {
 					...params,