diff --git a/src/views/roadmap/PathDetails.vue b/src/views/roadmap/PathDetails.vue index ece92ae..f24d83c 100644 --- a/src/views/roadmap/PathDetails.vue +++ b/src/views/roadmap/PathDetails.vue @@ -551,11 +551,11 @@ const types = ref({ 13: '去完成', }, path: { - 1: '', + 1: import.meta.env.VITE_BOE_ONLINE_CLASS_URL, 2: '/faceteach', - 3: '', + 3: import.meta.env.VITE_BOE_CASS_DETAIL_URL, 4: '/homeworkpage', - 5: '', + 5: import.meta.env.VITE_BOE_TEST_DETAIL_URL, 6: '/livebroadcast', 7: '', 8: '/discusspage', @@ -572,9 +572,9 @@ function toFinish(d) { ElMessage.error('暂时未开放') return } - if (d.type === 1) { + if (types.value.path[d.type] && types.value.path[d.type].startWith('http')) { //配置文件 - window.parent.location.href = import.meta.env.VITE_BOE_ONLINE_CLASS_URL + window.parent.location.href = types.value.path[d.type] return; } router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1, courseId: d.courseId}})