mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-10 03:16:46 +08:00
feat:修改bug
This commit is contained in:
@@ -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] &&
|
||||
|
||||
Reference in New Issue
Block a user