This commit is contained in:
yuping
2022-12-14 20:06:50 +08:00
parent 2834fda007
commit 159146f66b
2 changed files with 5 additions and 5 deletions

View File

@@ -572,9 +572,10 @@ function toFinish(d) {
ElMessage.error('暂时未开放')
return
}
if (types.value.path[d.type] && types.value.path[d.type].startWith('http')) {
if (types.value.path[d.type] && types.value.path[d.type].startsWith('http')) {
//配置文件
import.meta.env.DEV ? window.location.href : window.parent.location.href = types.value.path[d.type]
const url = types.value.path[d.type] + (d.type === 1 ? d.targetId : d.courseId)
import.meta.env.DEV ? (window.location.href = url) : (window.parent.location.href = url)
return;
}
router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1, courseId: d.courseId}})