From 5902ba5c3ff85efc78c95364196cd6ab5d2d1601 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 11 十月 2020 12:21:17 +0800
Subject: [PATCH] 2020-10-11

---
 src/menu/datasource/index.jsx |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/menu/datasource/index.jsx b/src/menu/datasource/index.jsx
index bead534..5520997 100644
--- a/src/menu/datasource/index.jsx
+++ b/src/menu/datasource/index.jsx
@@ -18,6 +18,7 @@
   state = {
     dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
     sourcelist: [],
+    mainSearch: [],
     visible: false,
     loading: false,
     setting: null
@@ -35,7 +36,8 @@
 
   editDataSource = () => {
     this.setState({
-      visible: true
+      visible: true,
+      mainSearch: []
     })
   }
 
@@ -54,7 +56,7 @@
 
   render () {
     const { config, menu } = this.props
-    const { visible, dict, loading } = this.state
+    const { visible, dict, loading, mainSearch } = this.state
 
     return (
       <div className="model-datasource">
@@ -75,6 +77,7 @@
           <VerifyCard
             dict={dict}
             menu={menu}
+            mainSearch={mainSearch}
             config={config}
             wrappedComponentRef={(inst) => this.verifyRef = inst}
           />

--
Gitblit v1.8.0