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("当前关卡不可预览");
|
||||
return
|
||||
}
|
||||
isStudy = true;
|
||||
}else{
|
||||
if (current.value !== i) {
|
||||
let lookArr = [];
|
||||
|
||||
@@ -208,7 +208,7 @@ const answerTime = dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss");
|
||||
|
||||
// 增加浏览量
|
||||
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(EditVoteInvolvedAndBrowse, {operationType:1, voteId:dataInfo.value.id });
|
||||
useRequest(EditVoteInvolvedAndBrowse, {operationType:'1', voteId:dataInfo.value.id });
|
||||
};
|
||||
</script>
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
|
||||
@@ -411,6 +411,7 @@ const getData = () => {
|
||||
request(COMMENT_LIST, {
|
||||
id: e.data.id,
|
||||
type: 1,
|
||||
current:hfPage.value.currentPage,
|
||||
pageNo:hfPage.value.currentPage,
|
||||
pageSize:10
|
||||
}).then(res=>{
|
||||
|
||||
@@ -388,6 +388,7 @@ const getData = () => {
|
||||
request(COMMENT_LIST, {
|
||||
id: courseId,
|
||||
type: 2,
|
||||
current:hfPage.value.currentPage,
|
||||
pageNo:hfPage.value.currentPage,
|
||||
pageSize:10
|
||||
}).then(res=>{
|
||||
|
||||
Reference in New Issue
Block a user