From a3ac1b4636cf446804bb1947d6a5d2dd6c3bc030 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 13 十二月 2020 17:16:54 +0800
Subject: [PATCH] 2020-12-13

---
 src/tabviews/custom/index.jsx |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 7297557..56c60aa 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -251,15 +251,6 @@
         })
       }
 
-      if (item.setting && item.setting.supModule) {
-        let pid = item.setting.supModule.slice(-1)[0]
-        if (pid && pid !== 'empty') {
-          item.setting.supModule = pid
-        } else {
-          item.setting.supModule = ''
-        }
-      }
-
       // 鏉冮檺杩囨护
       if (this.props.menuType !== 'HS') {
         if (item.action && item.action.length > 0) {
@@ -313,6 +304,22 @@
           })
         }
       }
+
+      if (item.setting && item.setting.supModule) {
+        let pid = item.setting.supModule.slice(-1)[0]
+        if (pid && pid !== 'empty') {
+          item.setting.supModule = pid
+        } else {
+          item.setting.supModule = ''
+        }
+      }
+      if (item.wrap && item.wrap.doubleClick) {
+        let index = item.action.findIndex((btn) => btn.uuid === item.wrap.doubleClick)
+        if (index === -1) {
+          item.wrap.doubleClick = ''
+        }
+      }
+      
       return true
     })
   }

--
Gitblit v1.8.0