From 3f69b4dfc585c4dfbc3c07a6acf5cdd838033636 Mon Sep 17 00:00:00 2001
From: liuguocan <527956374@qq.com>
Date: 星期二, 28 十一月 2023 14:45:49 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 admin-web/src/utils/base.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/admin-web/src/utils/base.js b/admin-web/src/utils/base.js
index d4980c0..b2f7f05 100644
--- a/admin-web/src/utils/base.js
+++ b/admin-web/src/utils/base.js
@@ -34,7 +34,8 @@
       if (obj.url.indexOf('http') !== 0) {
         url = SettingIplatform.ftpUrl + url
       }
-      window.open(routeUrl.href + '?url=' + encodeURIComponent(url) + '&docName=' + encodeURIComponent(encodeURIComponent(obj.fileName)), '_blank')
+      const newWindow = window.open(routeUrl.href + '?url=' + encodeURIComponent(url) + '&docName=' + encodeURIComponent(encodeURIComponent(obj.fileName)), '_blank')
+      if (newWindow) newWindow.opener = null
     } else {
       Message.warning('鏂囦欢鏍煎紡涓嶆敮鎸侀瑙堬紒')
     }

--
Gitblit v1.9.1