From b842387bca5d2b8d17a00e1d2bcec941baeac254 Mon Sep 17 00:00:00 2001 From: wyx Date: Sun, 5 Mar 2023 11:17:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PathDetailImage.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); }