From dce3eca3dc273be7a5bd66094b840bb6c4f763c0 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 21 十一月 2021 14:09:44 +0800
Subject: [PATCH] 2021-11-21

---
 src/templates/sharecomponent/actioncomponent/index.jsx |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/index.jsx b/src/templates/sharecomponent/actioncomponent/index.jsx
index abfa8a0..f1b2953 100644
--- a/src/templates/sharecomponent/actioncomponent/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/index.jsx
@@ -58,7 +58,14 @@
 
   componentDidMount () {
     this.getBillPrintTemp()
+    MKEmitter.addListener('revert', this.revert)
     MKEmitter.addListener('pasteButton', this.pasteButton)
+  }
+
+  revert = () => {
+    this.setState({
+      actionlist: fromJS(this.props.config.action).toJS()
+    })
   }
 
   pasteButton = (MenuId, btn) => {
@@ -847,6 +854,7 @@
     this.setState = () => {
       return
     }
+    MKEmitter.removeListener('revert', this.revert)
     MKEmitter.removeListener('pasteButton', this.pasteButton)
   }
 

--
Gitblit v1.8.0