|
@@ -167,7 +167,6 @@ Component({
|
|
|
let moment = await AIMomentCommentquery.first()
|
|
|
if (moment) {
|
|
|
moment.set('isLiked', this.data.isclick)
|
|
|
- // moment.set('isDeleted', true)
|
|
|
try {
|
|
|
let saveDate = await moment.save();
|
|
|
this.showchick()
|
|
@@ -402,10 +401,11 @@ Component({
|
|
|
if (!this.data.isCommentFocused) { // 只有在没有评论聚焦时才重置
|
|
|
const updatedCommentList = this.data.commentList.map(comment => ({
|
|
|
...comment,
|
|
|
- showdeletid: false // 重置所有评论的 showdeletid
|
|
|
+ showdeletid: false ,// 重置所有评论的 showdeletid
|
|
|
}));
|
|
|
|
|
|
this.setData({
|
|
|
+ isgood:false,
|
|
|
commentList: updatedCommentList,
|
|
|
focusedCommentId: null // 清除聚焦状态
|
|
|
});
|