diff --git a/src/api/request.js b/src/api/request.js index 6d5f017..96cc4a4 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -94,7 +94,7 @@ export async function request(_url, params) { }).then(resp => resp.data).then(response => { if (response.code !== 200 && response.code !== 0) { if (response.code === 1000) { - import.meta.env.MODE === 'development' ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL,'_self') + import.meta.env.MODE === 'development' ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL,'_top') } // if (import.meta.env.DEV && response.code === 1000) { // router.push({path: '/login'}) diff --git a/src/components/PathDetailImage.vue b/src/components/PathDetailImage.vue index d470f54..7adc428 100644 --- a/src/components/PathDetailImage.vue +++ b/src/components/PathDetailImage.vue @@ -64,7 +64,7 @@ function toDetail(i) { `${import.meta.env.VITE_BOE_PATH_DETAIL_URL}/pathdetails¶ms=${encodeURIComponent( `routerId=${props.detail.routerId}&routerName=${props.detail.routerName}` )}` - ,'_self'); + ,'_top'); } function close() { diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index 485882c..8a81426 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -367,7 +367,7 @@ function toExamItem(obj) { } } console.log("obj", obj.examinationTestId); - window.open(import.meta.env.VITE_BOE_EXAM_DETAIL_URL + obj.examinationTestId,'_self'); //测评 + window.open(import.meta.env.VITE_BOE_EXAM_DETAIL_URL + obj.examinationTestId,'_top'); //测评 // router.push({ path: import.meta.env.VITE_BOE_EXAM_DETAIL_URL+ obj.examinationTestId }); } diff --git a/src/views/liveBroadcast/LiveBroadcast.vue b/src/views/liveBroadcast/LiveBroadcast.vue index 9d4d382..b04352c 100644 --- a/src/views/liveBroadcast/LiveBroadcast.vue +++ b/src/views/liveBroadcast/LiveBroadcast.vue @@ -284,7 +284,7 @@ function showClick() { return; } } - window.open(data.value.liveLink,'_self'); + window.open(data.value.liveLink,'_top'); } onUnmounted(() => { if (timer) { diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index dfd321e..71ce571 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -13,7 +13,8 @@