From a0e4ae8e56c4615082c2ab2ff66d58223d1be343 Mon Sep 17 00:00:00 2001 From: huangzhe <3451701311@qq.com> Date: Fri, 22 Aug 2025 18:44:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20window.open=20=E6=B7=BB=E5=8A=A0=20=5Fto?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/CONST.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/CONST.js b/src/api/CONST.js index 80a15b5..129186e 100644 --- a/src/api/CONST.js +++ b/src/api/CONST.js @@ -41,9 +41,9 @@ export const TASK_TYPES = { 13: "去完成", }, path: { - 1: ({ courseId }) => window.open(window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL + courseId), //在线 + 1: ({ courseId }) => window.open(window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL + courseId, '_top'), //在线 2: ({ targetId }) => window.open(`${location.protocol}//${location.host}${import.meta.env.VITE_BASE_API}/stu/project/redirectDetail?courseId=${targetId}`, '_top'), - 3: ({ courseId }) => window.open(window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL + courseId), //案例 + 3: ({ courseId }) => window.open(window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL + courseId, '_top'), //案例 4: "/homeworkpage", 5: ({ examType }) => examType === 2 ? '/externalexam' : (window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL), //考试 6: "/liveboradcast",