diff --git a/src/api/CONST.js b/src/api/CONST.js index 5f5b0ea..b127de7 100644 --- a/src/api/CONST.js +++ b/src/api/CONST.js @@ -44,11 +44,12 @@ export const TASK_TYPES = { }, path: { + // 增加异步防止ios阻止弹窗弹出 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')}), + 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' : setTimeout(() => {(window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL)}), //考试 + 5: ({ examType }) => examType === 2 ? '/externalexam' : (window.location.protocol + import.meta.env.VITE_BOE_EXAM_DETAIL_URL), //考试 6: "/liveboradcast", 7: '/outerchain', //外联 8: "/discusspage", diff --git a/src/views/growth/components/gowthPath2.vue b/src/views/growth/components/gowthPath2.vue index 414388a..fe516ab 100644 --- a/src/views/growth/components/gowthPath2.vue +++ b/src/views/growth/components/gowthPath2.vue @@ -3,7 +3,7 @@