From a9ba0e5bc39654b5fa277852135afb49ce11c66c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 12 四月 2025 23:15:16 +0800 Subject: [PATCH] 2025-04-12 --- src/menu/components/share/pasteforms/index.jsx | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/menu/components/share/pasteforms/index.jsx b/src/menu/components/share/pasteforms/index.jsx index 180304b..c096113 100644 --- a/src/menu/components/share/pasteforms/index.jsx +++ b/src/menu/components/share/pasteforms/index.jsx @@ -87,6 +87,7 @@ let forms = fromJS(config.fields).toJS() let fields = fromJS(result.fields).toJS() let repeats = [] + let lastId = '' forms = forms.map(item => { if (!item.field) return item @@ -94,11 +95,16 @@ let cell = fields.filter(m => m.field && m.field.toLowerCase() === item.field.toLowerCase())[0] if (cell) { repeats.push(cell.field) + lastId = cell.uuid return cell } return item }) + + if (lastId) { + window.GLOB.formId = lastId + } fields = fields.filter(m => !m.field || !repeats.includes(m.field)) -- Gitblit v1.8.0