From 62eff3734eb8456a4f26886d45961d6f9970763d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 10 一月 2025 15:02:45 +0800 Subject: [PATCH] 2025-01-10 --- src/menu/pastecontroller/index.jsx | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/menu/pastecontroller/index.jsx b/src/menu/pastecontroller/index.jsx index b9b8937..a570034 100644 --- a/src/menu/pastecontroller/index.jsx +++ b/src/menu/pastecontroller/index.jsx @@ -177,11 +177,23 @@ btn.anchors = this.modules[id] || this.modules[_id] || null } if (btn.syncComponent && btn.syncComponent[0] === 'multiComponent' && btn.syncComponents) { + if (btn.syncComponents[0] && Array.isArray(btn.syncComponents[0])) { // 鍏煎闂鏁版嵁 + btn.syncComponents = btn.syncComponents.map((item, i) => { + return { + syncComId: item, + label: '', + uuid: 'fixed' + i + } + }) + } + btn.syncComponents = btn.syncComponents.map(m => { let id = m.syncComId[m.syncComId.length - 1] let _id = md5(commonId + id) - return this.modules[id] || this.modules[_id] || null + m.syncComId = this.modules[id] || this.modules[_id] || null + + return m.syncComId ? m : null }) btn.syncComponents = btn.syncComponents.filter(Boolean) -- Gitblit v1.8.0