mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +08:00
--fix bug
This commit is contained in:
@@ -264,16 +264,17 @@ function canStudy(setting,current){
|
||||
return false
|
||||
}
|
||||
function toDetail(item, i) {
|
||||
const realIndex = data.value?.list.findIndex(e => e.id === showList.value[i].id);
|
||||
// 预览和学习设置
|
||||
let isStudy = true;
|
||||
if(current.value !== i && !canStudy(props.routerInfo.previewSetting,i+1) && !canStudy(props.routerInfo.studySetting,i+1)){
|
||||
if(current.value !== i && !canStudy(props.routerInfo.previewSetting,realIndex+1) && !canStudy(props.routerInfo.studySetting,realIndex+1)){
|
||||
ElMessage.warning("当前关卡不可预览");
|
||||
return;
|
||||
}
|
||||
if(current.value !== i && canStudy(props.routerInfo.previewSetting,i+1)){
|
||||
if(current.value !== i && canStudy(props.routerInfo.previewSetting,realIndex+1)){
|
||||
isStudy = false
|
||||
}
|
||||
if(current.value !== i && canStudy(props.routerInfo.studySetting,i+1)){
|
||||
if(current.value !== i && canStudy(props.routerInfo.studySetting,realIndex+1)){
|
||||
isStudy = true
|
||||
}
|
||||
router.push({
|
||||
|
||||
Reference in New Issue
Block a user