From b438c7318712385a77026885063299958f23356e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 13 七月 2021 17:00:49 +0800
Subject: [PATCH] 2021-07-13

---
 src/tabviews/zshare/actionList/normalbutton/index.jsx |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index 73ce38e..d13a022 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -70,9 +70,8 @@
   componentDidMount () {
     const { position } = this.props
 
-    if (position === 'toolbar') {
-      MKEmitter.addListener('triggerBtnId', this.actionTrigger)
-    } else if (position === 'form') {
+    MKEmitter.addListener('triggerBtnId', this.actionTrigger)
+    if (position === 'form') {
       MKEmitter.addListener('triggerFormSubmit', this.actionSubmit)
     }
     MKEmitter.addListener('returnModuleParam', this.resetModuleParam)
@@ -159,6 +158,11 @@
       return
     }
 
+    if (btn.$syncModule && !triggerId) {
+      MKEmitter.emit('getSyncData', btn.$syncModule, btn.uuid)
+      return
+    }
+
     let _this = this
     let data = record || selectedData || []
 

--
Gitblit v1.8.0