mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 02:46:47 +08:00
fix: 修复火狐重定向时报错
This commit is contained in:
@@ -167,8 +167,8 @@
|
|||||||
<div
|
<div
|
||||||
v-if="data.unlockMode === 1"
|
v-if="data.unlockMode === 1"
|
||||||
class="goclass"
|
class="goclass"
|
||||||
@click="
|
@click.prevent="
|
||||||
toFinish(el, item.stageName, item.id, item.studyModel)
|
toFinish(el, item.stageName, item.id, item.studyModel, $event)
|
||||||
"
|
"
|
||||||
:style="{
|
:style="{
|
||||||
background:
|
background:
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
class="goclass"
|
class="goclass"
|
||||||
@click="
|
@click.prevent="
|
||||||
toFinish(el, item.stageName, item.id, item.studyModel)
|
toFinish(el, item.stageName, item.id, item.studyModel)
|
||||||
"
|
"
|
||||||
:style="{
|
:style="{
|
||||||
@@ -550,7 +550,7 @@ function judgeTaskIsEnd(type, endTimes, status) {
|
|||||||
return isEnd;
|
return isEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
function toFinish(d, sName, chapterOrStageId, studyModel) {
|
function toFinish(d, sName, chapterOrStageId, studyModel,e) {
|
||||||
if (studyModel != 0 && !d.statusName) {
|
if (studyModel != 0 && !d.statusName) {
|
||||||
ElMessage.warning("当前未解锁");
|
ElMessage.warning("当前未解锁");
|
||||||
return;
|
return;
|
||||||
@@ -753,8 +753,7 @@ function toFinish(d, sName, chapterOrStageId, studyModel) {
|
|||||||
type: PROJECT,
|
type: PROJECT,
|
||||||
pid: projectId,
|
pid: projectId,
|
||||||
name: d.name,
|
name: d.name,
|
||||||
});
|
}).then(()=>{
|
||||||
|
|
||||||
if (typeof TASK_TYPES.path[d.type] === "string") {
|
if (typeof TASK_TYPES.path[d.type] === "string") {
|
||||||
console.log("TASK_TYPES.path[d.type]", TASK_TYPES.path[d.type]);
|
console.log("TASK_TYPES.path[d.type]", TASK_TYPES.path[d.type]);
|
||||||
TASK_TYPES.path[d.type] &&
|
TASK_TYPES.path[d.type] &&
|
||||||
@@ -782,8 +781,10 @@ function toFinish(d, sName, chapterOrStageId, studyModel) {
|
|||||||
});
|
});
|
||||||
} else if (typeof TASK_TYPES.path[d.type] === "function") {
|
} else if (typeof TASK_TYPES.path[d.type] === "function") {
|
||||||
if (d.type == 5) {
|
if (d.type == 5) {
|
||||||
// 模拟点击跳转
|
|
||||||
const url = TASK_TYPES.path[d.type](d) + d.targetId
|
const url = TASK_TYPES.path[d.type](d) + d.targetId
|
||||||
|
if (isIOS()){
|
||||||
|
// 模拟点击跳转
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = url;
|
a.href = url;
|
||||||
// a.target = "_blank";
|
// a.target = "_blank";
|
||||||
@@ -794,7 +795,7 @@ function toFinish(d, sName, chapterOrStageId, studyModel) {
|
|||||||
} else {
|
} else {
|
||||||
TASK_TYPES.path[d.type](d);
|
TASK_TYPES.path[d.type](d);
|
||||||
}
|
}
|
||||||
}
|
}}})
|
||||||
// if (typeof types.value.path[d.type] === "string") {
|
// if (typeof types.value.path[d.type] === "string") {
|
||||||
// types.value.path[d.type] &&
|
// types.value.path[d.type] &&
|
||||||
// types.value.path[d.type].startsWith("http") &&
|
// types.value.path[d.type].startsWith("http") &&
|
||||||
|
|||||||
Reference in New Issue
Block a user