فهرست منبع

主诉添加症状bug修改2412

zhouna 5 سال پیش
والد
کامیت
c89c468d12
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      src/common/components/SearchBox/index.jsx

+ 3 - 2
src/common/components/SearchBox/index.jsx

@@ -48,14 +48,15 @@ class SearchBox extends React.Component {
     handleInput(e){
       e.stopPropagation();
       e.preventDefault();
-      const { getSearchData ,mainIds} = this.props;
+      const { getSearchData ,mainIds,clearSearch} = this.props;
         clearTimeout(this.state.timer);
         let timer = setTimeout(()=>{
             clearTimeout(this.state.timer);
             if(e.target.value.trim() == ''){
               this.setState({
                 showClear:false
-              })
+              });
+              clearSearch();
               return
             }
             this.setState({