From 1b95914976f90aebb68c7c58e57836d68a25b036 Mon Sep 17 00:00:00 2001 From: "du.meimei" Date: Wed, 28 May 2025 09:34:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ProjectManage):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=A1=B9=E7=9B=AE=E4=B8=AD=E7=9A=84=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=89=93=E5=BC=80=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 替换原有的在新窗口打开链接的方式,改为在当前窗口中打开- 解析 URL 中的 sn 参数,通过路由跳转到 survey/planet/design 页面 - 注释掉原有的 window.open 代码,阻止在 iframe 中打开新窗口 --- src/views/ProjectManage/create/Index.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/ProjectManage/create/Index.vue b/src/views/ProjectManage/create/Index.vue index 0f101d25..e1405d4f 100644 --- a/src/views/ProjectManage/create/Index.vue +++ b/src/views/ProjectManage/create/Index.vue @@ -673,10 +673,13 @@ function onIframeLoad() { // return null // 示例:用主窗口打开链接 - // router.push({ - // path:url - // }) - window.open(url, '_blank') + router.push({ + path:'/survey/planet/design', + query:{ + sn: url.split('sn=')[1] + } + }) + // window.open(url, '_blank') return null // 阻止 iframe 的 window.open } }