This commit is contained in:
yuping
2022-12-15 11:34:16 +08:00
parent a16607d21c
commit 00f7b09728

View File

@@ -116,7 +116,7 @@
}" }"
@click="toFinish(value)" @click="toFinish(value)"
> >
{{ types.path[value.type] ? types.toName[value.type] : "未开放" }} {{ value.status === 1 ? '已完成' : types.path[value.type] ? types.toName[value.type] : "未开放" }}
</div> </div>
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">--> <!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
<!-- <div--> <!-- <div-->
@@ -599,8 +599,7 @@ function toFinish(d) {
} }
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) { if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
//配置文件 //配置文件
const url = const url = types.value.path[d.type] + d.courseId;
types.value.path[d.type] + (d.type === 1 ? d.targetId : d.courseId);
import.meta.env.DEV import.meta.env.DEV
? (window.location.href = url) ? (window.location.href = url)
: (window.parent.location.href = url); : (window.parent.location.href = url);