fix(ProjectManage): 修复创建项目时窗口打开url的问题
-拦截 window.open 方法,去除 url 中的 'https://'前缀 - 使用 router.push替代原生 window.open,以适应前端路由
This commit is contained in:
@@ -666,6 +666,7 @@ function onIframeLoad() {
|
||||
// 覆盖 window.open 方法
|
||||
iframeWindow.open = function (url, target, features) {
|
||||
console.log('拦截到 window.open:', { url, target, features })
|
||||
url = url.replace('https://', '')
|
||||
router.push({
|
||||
path:url,
|
||||
query:{
|
||||
|
||||
Reference in New Issue
Block a user