This commit is contained in:
yuping
2022-12-14 19:53:11 +08:00
parent 2a99b50819
commit 379cac7f10

View File

@@ -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}})