修复提示请选中关卡问题

This commit is contained in:
zhangyc
2022-12-14 14:09:01 +08:00
parent 8310728551
commit 233d334840
13 changed files with 104 additions and 96 deletions

View File

@@ -177,11 +177,12 @@ export default {
};
//向关卡或阶段渲染
const updateTask = async (value) => {
if(!props.isactive){
if (props.isLevel == 1) {
if(!props.isactive){
message.destroy();
return message.warning("请先选中关卡");
}
if (props.isLevel == 1) {
await RouterEditTask({
chapterId: props.isactive,
courseId: Number(value.evaluationId),