From 46f79b491173d284a4900d19e7aecf7509481438 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 21 一月 2022 17:21:25 +0800 Subject: [PATCH] 2022-01-21 --- src/tabviews/custom/index.jsx | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index d4bc44a..b7262d9 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,12 +753,13 @@ 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 = '' - } - } + + // 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