fix:修改预览判断

This commit is contained in:
wyx
2023-03-04 17:42:42 +08:00
parent d17f8db802
commit 320fde3f4c
4 changed files with 5 additions and 2 deletions

View File

@@ -133,6 +133,7 @@ function toDetail(i) {
ElMessage.warning("当前关卡不可预览"); ElMessage.warning("当前关卡不可预览");
return return
} }
isStudy = true;
}else{ }else{
if (current.value !== i) { if (current.value !== i) {
let lookArr = []; let lookArr = [];

View File

@@ -208,7 +208,7 @@ const answerTime = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss");
// 增加浏览量 // 增加浏览量
watch(dataInfo, () => { watch(dataInfo, () => {
useRequest(EditVoteInvolvedAndBrowse, {operationType:2, voteId:dataInfo.value.id }); useRequest(EditVoteInvolvedAndBrowse, {operationType:'2', voteId:dataInfo.value.id });
}) })
// 选择题目 // 选择题目
@@ -251,7 +251,7 @@ const submitVote = () => {
}; };
useRequest(VOTE_DETAIL_SUBMIT, obj); useRequest(VOTE_DETAIL_SUBMIT, obj);
// 增加参与数目 // 增加参与数目
useRequest(EditVoteInvolvedAndBrowse, {operationType:1, voteId:dataInfo.value.id }); useRequest(EditVoteInvolvedAndBrowse, {operationType:'1', voteId:dataInfo.value.id });
}; };
</script> </script>
<!-- Add "scoped" attribute to limit CSS to this component only --> <!-- Add "scoped" attribute to limit CSS to this component only -->

View File

@@ -411,6 +411,7 @@ const getData = () => {
request(COMMENT_LIST, { request(COMMENT_LIST, {
id: e.data.id, id: e.data.id,
type: 1, type: 1,
current:hfPage.value.currentPage,
pageNo:hfPage.value.currentPage, pageNo:hfPage.value.currentPage,
pageSize:10 pageSize:10
}).then(res=>{ }).then(res=>{

View File

@@ -388,6 +388,7 @@ const getData = () => {
request(COMMENT_LIST, { request(COMMENT_LIST, {
id: courseId, id: courseId,
type: 2, type: 2,
current:hfPage.value.currentPage,
pageNo:hfPage.value.currentPage, pageNo:hfPage.value.currentPage,
pageSize:10 pageSize:10
}).then(res=>{ }).then(res=>{