From 159146f66ba13b2140a706112cd2343a632782f2 Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Wed, 14 Dec 2022 20:06:50 +0800 Subject: [PATCH] init --- .env.release | 5 ++--- src/views/roadmap/PathDetails.vue | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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}})