完成当前阶段所有必修任务解锁下一阶段
routerInfoData.value.unlockMode === 1 ? 1 : 2)
@@ -101,8 +102,16 @@ const closeDrawer = () => {
visible.value = false
};
-function selectClassify({type}) {
- routerInfoData.value.unlockMode = type
+function selectClassify(e) {
+
+ if(e.type === 1){
+ routerInfoData.value.unlockMode = e.type
+ }
+ // 当为学习路径图时候 直接默认第一个选项 不用选中
+ if(e.type==2 && props.types==1){
+ routerInfoData.value.unlockMode = e.type
+ }
+
}
const saveUnlock = () => {
diff --git a/src/views/learningpath/LevelAddDetail.vue b/src/views/learningpath/LevelAddDetail.vue
index 63aef843..8c962aeb 100644
--- a/src/views/learningpath/LevelAddDetail.vue
+++ b/src/views/learningpath/LevelAddDetail.vue
@@ -123,7 +123,7 @@
闯关模式
闯关模式
-
+
切换模式
@@ -462,6 +462,7 @@ const confirmLoading = ref(false)
const moveChapterIndex = ref('')
const activeIndex = ref(0)
const deleteIndex = ref(0)
+const types = 1 // 1 路径图 2 项目
const courseRef = ref({})
const formValue = ref({draftTaskList: []})