From 8387b106cf16bc9c8ff74da92b6cead5ff19eb42 Mon Sep 17 00:00:00 2001 From: Pengxiansen <2422914688@qq.com> Date: Thu, 27 Feb 2025 01:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/CONST.js | 8 ++++---- src/views/growth/growthDetails.vue | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/api/CONST.js b/src/api/CONST.js index 679f428..5f5b0ea 100644 --- a/src/api/CONST.js +++ b/src/api/CONST.js @@ -44,11 +44,11 @@ export const TASK_TYPES = { }, path: { - 1: ({ courseId }) => window.open(window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL + courseId), //在线 - 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), //案例 + 1: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL + courseId) }), //在线 + 2: ({ targetId }) => setTimeout(() => { window.open(`${location.protocol}//${location.host}${import.meta.env.VITE_BASE_API}/stu/project/redirectDetail?courseId=${targetId}`, '_top')}), + 3: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL + courseId) }), //案例 4: "/homeworkpage", - 5: ({ examType }) => examType === 2 ? '/externalexam' : (window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL), //考试 + 5: ({ examType }) => examType === 2 ? '/externalexam' : setTimeout(() => {(window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL)}), //考试 6: "/liveboradcast", 7: '/outerchain', //外联 8: "/discusspage", diff --git a/src/views/growth/growthDetails.vue b/src/views/growth/growthDetails.vue index 838efa8..896868b 100644 --- a/src/views/growth/growthDetails.vue +++ b/src/views/growth/growthDetails.vue @@ -79,20 +79,20 @@ }" -->