From 84a5231564812f1d333a31f261af8bc2657f47ad Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Mon, 26 Dec 2022 12:59:17 +0800 Subject: [PATCH] =?UTF-8?q?--=20=E8=AF=A6=E6=83=85=E4=B8=8D=E6=89=93?= =?UTF-8?q?=E5=BC=80=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request.js | 2 +- src/components/PathDetailImage.vue | 2 +- src/views/faceteach/FaceTeach.vue | 2 +- src/views/liveBroadcast/LiveBroadcast.vue | 2 +- src/views/project/ProjectDetails.vue | 6 +++--- src/views/project/ProjectManage.vue | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/api/request.js b/src/api/request.js index d469ad6..6d5f017 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) + import.meta.env.MODE === 'development' ? router.push({ path: '/login' }) : window.open(import.meta.env.VITE_BASE_LOGIN_URL,'_self') } // 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 1cca01b..d470f54 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'); } function close() { diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index 8318992..a95e725 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -369,7 +369,7 @@ function toExamItem(obj) { } } console.log("obj", obj.examinationTestId); - window.open(import.meta.env.VITE_BOE_EXAM_DETAIL_URL + obj.examinationTestId); //测评 + window.open(import.meta.env.VITE_BOE_EXAM_DETAIL_URL + obj.examinationTestId,'_self'); //测评 // 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 ef926b6..1ec2030 100644 --- a/src/views/liveBroadcast/LiveBroadcast.vue +++ b/src/views/liveBroadcast/LiveBroadcast.vue @@ -283,7 +283,7 @@ function showClick() { return; } } - window.open(data.value.liveLink); + window.open(data.value.liveLink,'_self'); } onUnmounted(() => { if (timer) { diff --git a/src/views/project/ProjectDetails.vue b/src/views/project/ProjectDetails.vue index 0ae3fb8..4739fd4 100644 --- a/src/views/project/ProjectDetails.vue +++ b/src/views/project/ProjectDetails.vue @@ -342,7 +342,7 @@ const types = ref({ 6: "/livebroadcast", 7: ({ courseId }) => request(LINK_DETAILS(courseId), {}).then(({ data: { linkAddress } }) => - window.open(linkAddress) + window.open(linkAddress,'_self') ), //外联 8: "/discusspage", 9: "/moreactive", @@ -351,7 +351,7 @@ const types = ref({ (evaType == 0 ? import.meta.env.VITE_BOE_TEST_DETAIL_URL : import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL) + targetId - ), //测评 + ,'_self'), //测评 11: "/surveydetail", 12: "/ballotpage", 13: "/projectdetails", @@ -448,7 +448,7 @@ function toFinish(d, sName, chapterOrStageId) { if (typeof types.value.path[d.type] === "string") { types.value.path[d.type] && types.value.path[d.type].startsWith("http") && - window.open(types.value.path[d.type] + d.targetId); + window.open(types.value.path[d.type] + d.targetId,'_self'); types.value.path[d.type] && types.value.path[d.type].startsWith("/") && router.push({ diff --git a/src/views/project/ProjectManage.vue b/src/views/project/ProjectManage.vue index 1497412..8b1dd58 100644 --- a/src/views/project/ProjectManage.vue +++ b/src/views/project/ProjectManage.vue @@ -187,7 +187,7 @@ const goProjectDetails = (value) => { : window.open( `${import.meta.env.VITE_BOE_PATH_DETAIL_URL}/projectdetails¶ms=${encodeURIComponent( `projectId=${value.projectId}` - )}` + ,'_self')}` ); };