From de5422a404c6f23601e52b698e0aae7365281803 Mon Sep 17 00:00:00 2001 From: wxz Date: Tue, 24 Sep 2024 18:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E5=BF=97=E6=84=BF=E5=95=86?= =?UTF-8?q?=E5=9F=8E=E6=8E=A5=E5=85=A5=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 0ad413443..597bc3b38 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -947,7 +947,8 @@ router.beforeEach((to, from, next) => { // 添加动态(菜单)路由 // 已添加或者当前路由为页面路由, 可直接访问 let toUrl = to.meta.iframeURL - if (toUrl && toUrl.indexOf("target=_blank") != -1) { + console.log("=====", toUrl) + if (toUrl && toUrl.indexOf("ticket=") != -1) { // 此处请求后端,获取一个ticket票据 http.get("/auth/sso/getTicket") .then(({data: res}) => {