mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 12:26:49 +08:00
feat:合并
This commit is contained in:
@@ -342,7 +342,7 @@ import medal2 from "@/assets/image/medal/medal2.png";
|
||||
import medal3 from "@/assets/image/medal/medal3.png";
|
||||
import img from "@/assets/image/uploadimg.png";
|
||||
import { boeRequest, useRequest } from "@/api/request";
|
||||
import { BASE_URL, ROUTER_PROCESS } from "@/api/api";
|
||||
import { ROUTER_PROCESS } from "@/api/api";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { useUserInfo } from "@/api/utils";
|
||||
@@ -576,12 +576,11 @@ const types = ref({
|
||||
13: "去完成",
|
||||
},
|
||||
path: {
|
||||
// 1: `https://u-pre.boe.com/pc/course/studyindex?id=${}`,
|
||||
1: `https://u-pre.boe.com/pc/course/studyindex`,
|
||||
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",
|
||||
@@ -598,6 +597,15 @@ function toFinish(d) {
|
||||
ElMessage.error("暂时未开放");
|
||||
return;
|
||||
}
|
||||
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
||||
//配置文件
|
||||
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 },
|
||||
|
||||
Reference in New Issue
Block a user