|
|
|
@ -2722,8 +2722,8 @@ Page({ |
|
|
|
phoneNumber: phoneNumber // 添加用户标识信息,用于判断是否可以删除
|
|
|
|
}; |
|
|
|
|
|
|
|
// 更新评论列表 - add new comment to the end
|
|
|
|
const comments = [...this.data.comments, newComment]; |
|
|
|
// 更新评论列表 - add new comment to the beginning
|
|
|
|
const comments = [newComment, ...this.data.comments]; |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
comments: comments, |
|
|
|
|