diff --git a/.env.release b/.env.release index a550afe..17f063f 100644 --- a/.env.release +++ b/.env.release @@ -1,6 +1,5 @@ -VITE_BASE=/fe-student -VITE_BASE_API=/manageApi -VITE_PROXY_URL= +VITE_BASE=/fe-student-release +VITE_BASE_API=/manageApi-release VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id= diff --git a/src/views/roadmap/PathDetails.vue b/src/views/roadmap/PathDetails.vue index d5bf58e..d059a94 100644 --- a/src/views/roadmap/PathDetails.vue +++ b/src/views/roadmap/PathDetails.vue @@ -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}})