From b5364600d98c8749caba625ec813d4fe670d0a19 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 十二月 2021 17:29:55 +0800
Subject: [PATCH] 2021-12-16

---
 src/tabviews/custom/index.jsx |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index d4bc44a..2070009 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -737,7 +737,15 @@
         }
       } 
 
-      if (item.setting && item.setting.supModule) {
+      if (item.wrap && item.wrap.supType === 'multi') { // 鏁版嵁鍗″涓婄骇缁勪欢
+        if (item.supNodes && item.supNodes[0]) {
+          item.setting.supModule = item.supNodes[0].componentId
+        } else {
+          item.wrap.supType = 'single'
+          item.supNodes = null
+          item.setting.supModule = ''
+        }
+      } else if (item.setting && item.setting.supModule) {
         let pid = item.setting.supModule.pop()
         if (pid && pid !== 'empty') {
           item.setting.supModule = pid
@@ -745,6 +753,7 @@
           item.setting.supModule = ''
         }
       }
+
       if (item.wrap && item.wrap.doubleClick) {
         let index = item.action.findIndex((btn) => btn.uuid === item.wrap.doubleClick)
         if (index === -1) {

--
Gitblit v1.8.0