mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 19:36:48 +08:00
fix:修改预览判断
This commit is contained in:
@@ -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 = [];
|
||||||
|
|||||||
@@ -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 -->
|
||||||
|
|||||||
@@ -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=>{
|
||||||
|
|||||||
@@ -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=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user