...
|
...
|
@@ -99,8 +99,16 @@ export default class SearchList extends Component { |
|
|
}
|
|
|
|
|
|
componentWillReceiveProps(nextProps) {
|
|
|
let { destroy } = this.state;
|
|
|
let { destroy, page } = this.state;
|
|
|
if (!destroy) {
|
|
|
if (page.length > 0) {
|
|
|
Object.keys(page).filter((key) => {
|
|
|
page[key] = 0
|
|
|
});
|
|
|
}
|
|
|
this.setState({
|
|
|
page: page
|
|
|
});
|
|
|
this.getProductData(nextProps.filterMenu);
|
|
|
}
|
|
|
}
|
...
|
...
|
|