mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-08 18:36:48 +08:00
feat:增加讨论是否允许评论限制
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
|
||||
<div class="restore">
|
||||
<div class="reshead">
|
||||
<div v-if="discussSettings=='true'" class="reshead">
|
||||
<div class="headn">
|
||||
<div class="pl">评论</div>
|
||||
<div class="ts">{{ hfPage?.total }}条</div>
|
||||
|
||||
@@ -169,6 +169,7 @@ const closeLoading = () => {
|
||||
loading.value.close();
|
||||
};
|
||||
//获取讨论详情
|
||||
const discussSettings = ref("");
|
||||
const {
|
||||
query: { id, type, infoId, chapterOrStageId, id: taskId },
|
||||
} = useRoute();
|
||||
@@ -197,6 +198,7 @@ request(DISCUSS_LIST, {
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
discussSettings.value = e.data.discussDtoList[0].discussSettings;
|
||||
state.info = e.data;
|
||||
console.log("讨论详情", state.info);
|
||||
state.discussId = e.data.discussDtoList[0].id;
|
||||
@@ -278,7 +280,7 @@ const goDetails = (item) => {
|
||||
type,
|
||||
postID: item.id,
|
||||
postName: state.info.discussDtoList[0].discussName,
|
||||
discussSettings: state.info.discussDtoList[0].discussSettings,
|
||||
discussSettings: discussSettings.value
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user