feat:修改bug

This commit is contained in:
lixg
2023-03-10 01:37:45 +08:00
parent e03440d12e
commit c43b4fd723
13 changed files with 232 additions and 204 deletions

View File

@@ -526,7 +526,9 @@ function toFinish(d, sName, chapterOrStageId) {
pid: projectId,
name: d.name,
});
if (typeof TASK_TYPES.path[d.type] === "string") {
console.log("TASK_TYPES.path[d.type]", TASK_TYPES.path[d.type]);
TASK_TYPES.path[d.type] &&
TASK_TYPES.path[d.type].startsWith("http") &&
window.open(TASK_TYPES.path[d.type] + d.targetId, "_top");
@@ -547,10 +549,15 @@ function toFinish(d, sName, chapterOrStageId) {
targetId: d.targetId,
evaType: d.evaType,
btype: 1,
quizTaskId: d.quizTaskId,
},
});
} else if (typeof TASK_TYPES.path[d.type] === "function") {
TASK_TYPES.path[d.type](d);
if (d.type == 5) {
window.open(TASK_TYPES.path[d.type](d) + d.targetId, "_top");
} else {
TASK_TYPES.path[d.type](d);
}
}
// if (typeof types.value.path[d.type] === "string") {
// types.value.path[d.type] &&