diff --git a/Yi.Bbs.Vue3/src/apis/commentApi.js b/Yi.Bbs.Vue3/src/apis/commentApi.js index 305f811d..1615c9d9 100644 --- a/Yi.Bbs.Vue3/src/apis/commentApi.js +++ b/Yi.Bbs.Vue3/src/apis/commentApi.js @@ -15,9 +15,10 @@ export function add(data) { }); } -export function del(ids) { +export function del(data) { return request({ - url: `/comment/${ids}`, + url: `/comment`, method: "delete", + data: data, }); } diff --git a/Yi.Bbs.Vue3/src/components/CommentInfo.vue b/Yi.Bbs.Vue3/src/components/CommentInfo.vue index fc262af8..15863ef7 100644 --- a/Yi.Bbs.Vue3/src/components/CommentInfo.vue +++ b/Yi.Bbs.Vue3/src/components/CommentInfo.vue @@ -5,22 +5,30 @@
-
共{{total}}个评论
-
+
共{{ total }}个评论
+
+ 最新 最热 -
+
+
+ +
+ + 发表评论 + 其他 - -
- - 发表评论 - 其他 - - -
+ +
@@ -30,72 +38,123 @@ {{ item.content }} {{ item.creationTime }} - + - 0 - 回复 - 删除 + + 0 + 回复 + 删除
- +
- 回复 - + 回复
-
- -
+
- 回复@{{ children.commentedUser.nick }} + + 回复@{{ children.commentedUser.nick }}
{{ children.content }}
{{ children.creationTime }} - - - 0 - 回复 - 删除 + + 0 + 回复 + 删除
- -
- 回复 + +
+ 回复 +
-
- -
- + \ No newline at end of file +