From 123cbc9db72a548c748b622ee1e9ce8510491a8c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 九月 2024 17:14:32 +0800
Subject: [PATCH] 2024-09-26

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

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index 839c77d..eb53b14 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -3735,17 +3735,26 @@
     }
 
     if (sign === '@open_target_menu@' && btn.openmenu && Array.isArray(btn.openmenu) && btn.openmenu.length > 0) {
+      let id = ''
+      if (this.state.selines && this.state.selines.length > 0 && btn.Ot !== 'notRequired') {
+        if (btn.Ot === 'requiredOnce') {
+          id = this.state.selines.map(d => d.$$uuid).filter(Boolean).join(',')
+        } else {
+          id = this.state.selines[0].$$uuid
+        }
+      }
+
       let menuId = btn.openmenu.slice(-1)[0]
       let menu = null
 
       if (window.GLOB.mkThdMenus.has(menuId)) {
-        menu = {...window.GLOB.mkThdMenus.get(menuId), param: { $BID: '' }}
+        menu = {...window.GLOB.mkThdMenus.get(menuId), param: { $BID: id || '' }}
       } else if (btn.MenuID) {
         menu = {
           MenuID: btn.MenuID,
           MenuName: btn.MenuName,
           type: btn.tabType,
-          param: { $BID: '' }
+          param: { $BID: id || '' }
         }
       }
 

--
Gitblit v1.8.0