This commit is contained in:
yuping
2023-02-22 04:00:32 +08:00
parent 0b5b3be7d2
commit 32d9130bf0
2 changed files with 26 additions and 82 deletions

View File

@@ -2,7 +2,7 @@ export const PROJECT = 1;
export const ROUTER = 2;
export const COURSE = 3;
export const TASK_TYPES ={
export const TASK_TYPES = {
typeName: {
1: "在线",
2: "面授",
@@ -38,9 +38,9 @@ export const TASK_TYPES ={
2: ({courseId}) => window.open(`${location.protocol}//${location.host}${import.meta.env.VITE_BASE_API}/stu/project/redirectDetail?courseId=${courseId}`, '_top'),
3: window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL, //案例
4: "/homeworkpage",
5: window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL, //考试
5: ({examType}) => examType === 2 ? '/externalexamination' : (window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL), //考试
6: "/livebroadcast",
7: ({targetId}) => window.open(targetId, '_top'), //外联
7: '/outerchain', //外联
8: "/discusspage",
9: "/moreactive",
10: ({evaType, targetId}) =>