From 17ed25db495280080d4aeec83da4d282fa829902 Mon Sep 17 00:00:00 2001 From: huangzhe <3451701311@qq.com> Date: Fri, 22 Aug 2025 11:54:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E8=8B=B9=E6=9E=9C?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E6=8C=89=E9=92=AE=E7=82=B9=E5=BC=80=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E7=BD=91=E9=A1=B5=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectdetails/projectDetails.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/projectdetails/projectDetails.vue b/src/views/projectdetails/projectDetails.vue index 1f97ee9..0a3f662 100644 --- a/src/views/projectdetails/projectDetails.vue +++ b/src/views/projectdetails/projectDetails.vue @@ -675,7 +675,15 @@ function toFinish(d, sName, chapterOrStageId,studyModel) { }); } else if (typeof TASK_TYPES.path[d.type] === "function") { if (d.type == 5) { - window.open(TASK_TYPES.path[d.type](d) + d.targetId, "_top"); + // 模拟点击跳转 + const url = TASK_TYPES.path[d.type](d) + d.targetId + const a = document.createElement("a"); + a.href = url; + a.target = "_blank"; + a.click(); + + // 保底解决兼容问题 + window.open(url, "_top"); } else { TASK_TYPES.path[d.type](d); }