mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-09 19:06:48 +08:00
fix:修改发帖传递的id
This commit is contained in:
@@ -55,12 +55,12 @@
|
||||
<div class="intime">进行中</div>
|
||||
</div>
|
||||
<div class="allbtn">
|
||||
<button :class="`btnone ${state.searchType == 1 ? 'active' : ''}`" @click="nowPost(state.info.discussDtoList[0].discussId)">
|
||||
<button :class="`btnone ${state.searchType == 1 ? 'active' : ''}`" @click="nowPost(state.info.discussDtoList[0].id)">
|
||||
最新
|
||||
</button>
|
||||
<button
|
||||
:class="`btnone ${state.searchType == 2 ? 'active' : ''}`"
|
||||
style="margin-left: 20px" @click="hotPost(state.info.discussDtoList[0].discussId)">
|
||||
style="margin-left: 20px" @click="hotPost(state.info.discussDtoList[0].id)">
|
||||
最热
|
||||
</button>
|
||||
</div>
|
||||
@@ -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 = "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user