From fdce913ce7b9d55c34a2abd7a94ee377a4869b9a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 21 三月 2025 19:57:24 +0800
Subject: [PATCH] 2025-03-21

---
 src/templates/sharecomponent/actioncomponent/index.jsx |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/index.jsx b/src/templates/sharecomponent/actioncomponent/index.jsx
index 62be8b1..ded5aa6 100644
--- a/src/templates/sharecomponent/actioncomponent/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/index.jsx
@@ -53,15 +53,17 @@
 
   componentDidMount () {
     this.getBillPrintTemp()
-    // MKEmitter.addListener('revert', this.revert)
+    MKEmitter.addListener('revert', this.revert)
     MKEmitter.addListener('pasteButton', this.pasteButton)
   }
+  // dms-trans
+  revert = (id, type) => {
+    if (id !== this.props.config.uuid || type !== 'action') return
 
-  // revert = () => {
-  //   this.setState({
-  //     actionlist: fromJS(this.props.config.action).toJS()
-  //   })
-  // }
+    this.setState({
+      actionlist: fromJS(this.props.config.action).toJS()
+    })
+  }
 
   pasteButton = (MenuId, btn) => {
     const { config } = this.props
@@ -384,7 +386,7 @@
     this.setState = () => {
       return
     }
-    // MKEmitter.removeListener('revert', this.revert)
+    MKEmitter.removeListener('revert', this.revert)
     MKEmitter.removeListener('pasteButton', this.pasteButton)
   }
 

--
Gitblit v1.8.0