diff --git a/src/views/ProjectManage/create/Index.vue b/src/views/ProjectManage/create/Index.vue index e1405d4f..03835a1c 100644 --- a/src/views/ProjectManage/create/Index.vue +++ b/src/views/ProjectManage/create/Index.vue @@ -666,20 +666,14 @@ function onIframeLoad() { // 覆盖 window.open 方法 iframeWindow.open = function (url, target, features) { console.log('拦截到 window.open:', { url, target, features }) - - // 自定义逻辑,例如: - // return window.open(url, '_blank') // 继续用当前窗口打开 - // 或者阻止打开 - // return null - - // 示例:用主窗口打开链接 router.push({ - path:'/survey/planet/design', + path:url, query:{ - sn: url.split('sn=')[1] + sn: url.split('sn=')[1], + other: url.indexOf('other')!==-1?url.split('other=')[1]:'', + sceneCode: url.indexOf('sceneCode')!==-1? url.split('sceneCode=')[1]:'' } }) - // window.open(url, '_blank') return null // 阻止 iframe 的 window.open } }