From 5515a793e08f2c9f0c8116960d3043f5bd32ccad Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 15 六月 2021 11:07:02 +0800
Subject: [PATCH] 2021-06-15

---
 src/menu/components/share/pastecomponent/index.jsx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/share/pastecomponent/index.jsx b/src/menu/components/share/pastecomponent/index.jsx
index e4d8edf..73de275 100644
--- a/src/menu/components/share/pastecomponent/index.jsx
+++ b/src/menu/components/share/pastecomponent/index.jsx
@@ -129,6 +129,7 @@
   pasteSubmit = () => {
     const { options } = this.props
     this.pasteFormRef.handleConfirm().then(res => {
+
       if (!options.includes(res.copyType)) {
         notification.warning({ top: 92, message: '閰嶇疆淇℃伅鏍煎紡閿欒锛�', duration: 5 })
         return
@@ -147,7 +148,11 @@
         MKEmitter.emit('copyButtons', copyBtns)
       }
 
-      if (type === 'action') {
+      if (config.type === 'form' && config.subtype === 'stepform') {
+        this.props.updateConfig(res)
+        this.setState({visible: false})
+        return
+      } else if (type === 'action') {
         config.action = config.action || []
         config.action = config.action.filter(item => !item.origin)
 

--
Gitblit v1.8.0