diff --git a/Yi.Bbs.Vue3/src/components/CommentInfo.vue b/Yi.Bbs.Vue3/src/components/CommentInfo.vue index 8e9620e6..c50f91ce 100644 --- a/Yi.Bbs.Vue3/src/components/CommentInfo.vue +++ b/Yi.Bbs.Vue3/src/components/CommentInfo.vue @@ -39,8 +39,7 @@
-
- {{ item.content }} +
{{ item.creationTime }}
-
- {{ children.content }} +
{{ children.creationTime }} @@ -188,8 +186,12 @@ const loadComment = async () => { form.content = ""; const response = await getListByDiscussId(route.params.discussId, query); commentList.value = response.data.items; +//处理换行问题 + +commentList.value.forEach(x=>x.content=x.content.replace(/\n/g, "
")) total.value = response.data.total; }; + const addTopComment = async () => { form.parentId = "00000000-0000-0000-0000-000000000000"; form.rootId = "00000000-0000-0000-0000-000000000000";