From 6128b532f5397d8863697fc9ffe6f5a6361fca80 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 26 五月 2024 12:13:34 +0800
Subject: [PATCH] 2024-05-26

---
 src/tabviews/zshare/actionList/normalbutton/index.jsx |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index d4f7524..492aad9 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -2320,7 +2320,7 @@
       Modal.success({
         title: msg,
         onOk: () => {
-          this.successContinue(sign, id)
+          this.successContinue(sign, id, res)
         }
       })
       return
@@ -2328,10 +2328,10 @@
 
     }
 
-    this.successContinue(sign, id)
+    this.successContinue(sign, id, res)
   }
 
-  successContinue = (sign, id) => {
+  successContinue = (sign, id, res) => {
     const { btn } = this.props
     const { btnconfig } = this.state
 
@@ -2452,6 +2452,16 @@
       } else {
         url = btn.verify.linkUrl
       }
+
+      if (/@/.test(url)) {
+        Object.keys(res).forEach(key => {
+          url = url.replace(new RegExp('@' + key + '@', 'ig'), res[key])
+        })
+      }
+      if (!/^http/.test(url)) {
+        url = window.location.origin + url
+      }
+
       window.open(url)
     }
   }

--
Gitblit v1.8.0