This commit is contained in:
Gdpao
2020-08-12 15:35:47 +08:00
parent 1db45d40a7
commit 22812469a8
4 changed files with 136 additions and 50 deletions

View File

@@ -531,9 +531,11 @@ export default {
this.comment_num = res.data.num;
// console.log(this.comment_num);
this.is_edit = false;
if (res.data.data.pid) {
console.log(res.data.data.reply_id);
if (res.data.data.reply_id) {
this.commentList[this.comment_id].reply_count = true;
this.allList[this.comment_id].unshift(res.data.data);
console.log(this.allList,111);
} else {
this.commentList.unshift(res.data.data);
}