From a9e21702aaa024c0f7f2c0e35c8585cae9cde724 Mon Sep 17 00:00:00 2001 From: dawn9117 <silanglang@163.com> Date: 星期五, 26 十一月 2021 13:55:32 +0800 Subject: [PATCH] 接口重复鉴权BUG修复: ResourceConfig中已经配置鉴权拦截器, 添加sa-token-spring-aop会导致重复鉴权BUG --- ruoyi-ui/src/components/HeaderSearch/index.vue | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ruoyi-ui/src/components/HeaderSearch/index.vue b/ruoyi-ui/src/components/HeaderSearch/index.vue index ce9f305..c44eff5 100644 --- a/ruoyi-ui/src/components/HeaderSearch/index.vue +++ b/ruoyi-ui/src/components/HeaderSearch/index.vue @@ -70,9 +70,11 @@ this.show = false }, change(val) { + const path = val.path; if(this.ishttp(val.path)) { // http(s):// 璺緞鏂扮獥鍙f墦寮� - window.open(val.path, "_blank"); + const pindex = path.indexOf("http"); + window.open(path.substr(pindex, path.length), "_blank"); } else { this.$router.push(val.path) } -- Gitblit v1.9.3