From ae637d0187aa658c0e4e45215f1755051cd0a056 Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 17 Feb 2023 18:38:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=96?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E7=9A=84id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/discuss/DiscussPage.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/discuss/DiscussPage.vue b/src/views/discuss/DiscussPage.vue index 3421583..2c46965 100644 --- a/src/views/discuss/DiscussPage.vue +++ b/src/views/discuss/DiscussPage.vue @@ -55,12 +55,12 @@
进行中
-
@@ -239,7 +239,7 @@ request(DISCUSS_LIST, { }).then(e=>{ console.log('112233---->',e) state.info = e.data; - getPostList(e.data.discussDtoList[0].discussId); + getPostList(e.data.discussDtoList[0].id); }).catch(err=>{ console.log(err) }) @@ -287,7 +287,7 @@ function handleCurrentChange(e, k) { console.log('分页打印', e, k) state.currentPage = e; state.pageNo = e; - getPostList(state.info.discussDtoList[0].discussId); + getPostList(state.info.discussDtoList[0].id); } @@ -339,7 +339,7 @@ const postAdd = () => { "commentNum": 0, "content": valueHtml.value, "ctime": "", - "discussId": state.info.discussDtoList[0].discussId, + "discussId": state.info.discussDtoList[0].id, "id": 0, "mtime": "", "praiseNum": 0, @@ -358,7 +358,7 @@ const postAdd = () => { if(res.code==200){ dialogVisible.value = false; ElMessage.success("发帖成功"); - getPostList(state.info.discussDtoList[0].discussId); + getPostList(state.info.discussDtoList[0].id); titleName.value = ""; valueHtml.value = ""; }