feat: 采用 location.href 的方式进行跳转

This commit is contained in:
joshen
2025-08-22 19:11:03 +08:00
parent 7d47d285be
commit 9f86dfa578

View File

@@ -45,7 +45,7 @@ export const TASK_TYPES = {
path: {
// 增加异步防止ios阻止弹窗弹出
1: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_ONLINE_CLASS_URL + courseId, '_top') }), //在线
1: ({ courseId }) => setTimeout(() => { window.location.href = (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, '_top') }), //案例
4: "/homeworkpage",