filterable.source ctx问题

This commit is contained in:
rickcole 2019-08-27 15:10:53 +08:00
parent f5cb8b3185
commit d139a4eb84

View File

@ -1964,7 +1964,7 @@ export class HeadCellFilterDropDown extends React.Component<HeadCellFilterProps,
fetchOptions() {
const {env, filterable, data} = this.props;
isEffectiveApi(filterable.source, data) &&
env.fetcher(filterable.source).then(ret => {
env.fetcher(filterable.source, data).then(ret => {
let options = (ret.data && ret.data.options) || [];
this.setState({
filterOptions: ret && ret.data && this.alterOptions(options),