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

@@ -1,6 +1,5 @@
VITE_BASE=/fe-student VITE_BASE=/fe-student-release
VITE_BASE_API=/manageApi VITE_BASE_API=/manageApi-release
VITE_PROXY_URL=
VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id= VITE_BOE_ONLINE_CLASS_URL=https://u.boe.com/pc-release/course/studyindex?id=

View File

@@ -572,9 +572,10 @@ function toFinish(d) {
ElMessage.error('暂时未开放') ElMessage.error('暂时未开放')
return 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; return;
} }
router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1, courseId: d.courseId}}) router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1, courseId: d.courseId}})