From 9a79b538ed1a4fdaea71285b6acac369d54391b8 Mon Sep 17 00:00:00 2001 From: wyx Date: Sun, 5 Mar 2023 10:42:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=BB=98=E8=AE=A4=E5=80=BC=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PathDetailImage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PathDetailImage.vue b/src/components/PathDetailImage.vue index fd16735..e9bb074 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){ + if(previewSetting==null || previewSetting == 0){ // 如果未设置预览 则只可以看当前关卡 其余关卡不让点击 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){ + if(studySetting!==null || studySetting!==0){ let studyArr = []; studyArr = studySetting.split(',') if((i+1)>=studyArr[0] && (i+1)<=studyArr[1]){