From 49c5a7289c2e638434852be863ae54d851c0f176 Mon Sep 17 00:00:00 2001 From: Xwen <929716663@qq.com> Date: Sat, 16 Dec 2023 11:15:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E7=B3=BB=E5=88=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Bbs.Vue3/src/apis/commentApi.js | 5 +- Yi.Bbs.Vue3/src/components/CommentInfo.vue | 198 +++++++++++++-------- 2 files changed, 129 insertions(+), 74 deletions(-) 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 @@