From 1d8522499d6052e3d389667db1aae46a23208831 Mon Sep 17 00:00:00 2001
From: cy <1664593601@qq.com>
Date: 星期四, 14 十二月 2023 13:05:01 +0800
Subject: [PATCH] feat: 去掉按钮权限
---
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