diff --git a/src/components/PathDetailImage.vue b/src/components/PathDetailImage.vue index e9bb074..64b05eb 100644 --- a/src/components/PathDetailImage.vue +++ b/src/components/PathDetailImage.vue @@ -127,7 +127,7 @@ function toDetail(i) { let isStudy = false; let chapterId = props.detail.chapterDtoList[i].id console.log(studySetting) - if(previewSetting==null || previewSetting == 0){ + if(previewSetting==null){ // 如果未设置预览 则只可以看当前关卡 其余关卡不让点击 if (current.value !== i) { ElMessage.warning("当前关卡不可预览"); @@ -139,7 +139,7 @@ function toDetail(i) { let lookArr = []; lookArr = previewSetting.split(',') if((i+1)>=lookArr[0] && (i+1)<=lookArr[1]){ - if(studySetting!==null || studySetting!==0){ + if(studySetting!==null){ let studyArr = []; studyArr = studySetting.split(',') if((i+1)>=studyArr[0] && (i+1)<=studyArr[1]){ @@ -165,7 +165,7 @@ function toDetail(i) { }) : window.open( `${window.location.protocol + import.meta.env.VITE_BOE_PATH_DETAIL_URL}/pathdetails¶ms=${encodeURIComponent( - `routerId=${props.detail.id}&routerName=${props.detail.name}&chapterId=${chapterId}&studySetting=${studySetting}` + `routerId=${props.detail.id}&routerName=${props.detail.name}&chapterId=${chapterId}&isStudy=${isStudy}` )}` ,'_top'); }