mirror of https://gitee.com/answerdev/answer.git
fix(comment): #1007, fix comment original_text not update when edit
This commit is contained in:
parent
7d193e8c27
commit
f0da1b667a
|
@ -112,6 +112,7 @@ const Comment = ({ objectId, mode }) => {
|
||||||
if (comment.comment_id === item.comment_id) {
|
if (comment.comment_id === item.comment_id) {
|
||||||
comment.showEdit = false;
|
comment.showEdit = false;
|
||||||
comment.parsed_text = html;
|
comment.parsed_text = html;
|
||||||
|
comment.original_text = item.value;
|
||||||
}
|
}
|
||||||
return comment;
|
return comment;
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue