mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
学习路径项目模板库区分islevel字段
This commit is contained in:
@@ -355,7 +355,7 @@ export default {
|
||||
default: 0,
|
||||
},
|
||||
isLevel: { // 是否是关卡页面触发
|
||||
type: Boolean,
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
projectTaskId: { // 要编辑的projectId
|
||||
@@ -497,7 +497,7 @@ export default {
|
||||
return isJpgOrPng && isLt2M;
|
||||
};
|
||||
const updateTask =(res)=>{
|
||||
if(props.isLevel){
|
||||
if(props.isLevel ==1){
|
||||
RouterEditTask({
|
||||
chapterId: props.isactive,
|
||||
courseId: res.data.data.liveId,
|
||||
@@ -515,7 +515,7 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log(err, 1111);
|
||||
});
|
||||
}else{
|
||||
}else if(props.isLevel ==2){
|
||||
apiTask
|
||||
.addTask({
|
||||
courseId: res.data.data.liveId,
|
||||
@@ -536,6 +536,8 @@ export default {
|
||||
console.log(err);
|
||||
});
|
||||
|
||||
}else if(props.isLevel ==3){
|
||||
console.log("mobnku");
|
||||
}
|
||||
}
|
||||
//创建直播
|
||||
|
||||
Reference in New Issue
Block a user