From d9bfae49a5a7064c197f2ade36aec95ebeb49404 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 25 十一月 2021 13:37:03 +0800
Subject: [PATCH] 2021-11-25

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

diff --git a/src/templates/sharecomponent/searchcomponent/index.jsx b/src/templates/sharecomponent/searchcomponent/index.jsx
index 5179021..18643d9 100644
--- a/src/templates/sharecomponent/searchcomponent/index.jsx
+++ b/src/templates/sharecomponent/searchcomponent/index.jsx
@@ -62,6 +62,11 @@
 
   componentDidMount () {
     MKEmitter.addListener('plusSearch', this.plusSearch)
+    MKEmitter.addListener('revert', this.revert)
+  }
+
+  revert = () => {
+    this.setState({searchlist: fromJS(this.props.config.search).toJS()})
   }
 
   plusSearch = (MenuId, item, type) => {
@@ -312,6 +317,7 @@
     this.setState = () => {
       return
     }
+    MKEmitter.removeListener('revert', this.revert)
     MKEmitter.removeListener('plusSearch', this.plusSearch)
   }
 

--
Gitblit v1.8.0