mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-08 18:36:48 +08:00
feat: 采用 location.href 的方式进行跳转
This commit is contained in:
@@ -45,7 +45,7 @@ export const TASK_TYPES = {
|
|||||||
|
|
||||||
path: {
|
path: {
|
||||||
// 增加异步防止ios阻止弹窗弹出
|
// 增加异步防止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') }),
|
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') }), //案例
|
3: ({ courseId }) => setTimeout(() => { window.open(window.location.protocol + import.meta.env.VITE_BOE_CASS_DETAIL_URL + courseId, '_top') }), //案例
|
||||||
4: "/homeworkpage",
|
4: "/homeworkpage",
|
||||||
|
|||||||
Reference in New Issue
Block a user