From a1b85ef72062ca80db35546e4216dd564f3e0f57 Mon Sep 17 00:00:00 2001 From: WangHan <wwh_work@126,com> Date: 星期四, 03 四月 2025 15:58:19 +0800 Subject: [PATCH] 问题与漏洞修改 --- admin-web/src/utils/base.js | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/admin-web/src/utils/base.js b/admin-web/src/utils/base.js index 76b7d74..c3ef085 100644 --- a/admin-web/src/utils/base.js +++ b/admin-web/src/utils/base.js @@ -25,14 +25,13 @@ // 涓嬭浇鏂囦欢 -export function downLoad(obj) { - let url = obj.url - if (obj.url.indexOf('http') !== 0) { - url = SettingIplatform.ftpUrl + obj.url +export function downLoad(url) { + let link = url + if (link.indexOf('http') !== 0) { + link = SettingIplatform.ftpUrl + url } - window.open(decodeURI(url)) var doc = document.createElement('a') - doc.href = url + doc.href = link doc.target = '_blank' doc.rel = "noreferrer noopener" doc.click() -- Gitblit v1.9.1