|
@@ -68,7 +68,8 @@ class MainSuit extends Component{
|
|
|
if(!innerText.trim()){//有内容就走搜索接口
|
|
|
getCommonSymptoms && getCommonSymptoms();
|
|
|
this.setState({
|
|
|
- symptom:true
|
|
|
+ symptom:true,
|
|
|
+ inpText:innerText
|
|
|
})
|
|
|
}else{
|
|
|
this.setState({
|
|
@@ -169,7 +170,7 @@ class MainSuit extends Component{
|
|
|
handleChange(e){
|
|
|
const ev = e || window.event;
|
|
|
const data = ev.target.innerText;
|
|
|
- const {getSearchData,searchData,datas,pushMessage,reTotalHide} = this.props;
|
|
|
+ const {getSearchData,searchData,datas,pushMessage,reTotalHide,saveText} = this.props;
|
|
|
const {overFlag,inpText} = this.state;
|
|
|
reTotalHide && reTotalHide();//重置homePage中的控制项
|
|
|
const that = this;
|