mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 04:28:32 +08:00
amis-saas-7095 [Bug] 前端select调用api 预览态返回设计态 接口配置异常
Change-Id: I3c4e62a8e2cf5153da948f466dc064a930b4eadd
This commit is contained in:
parent
a0ea7176d5
commit
b034c38a29
@ -304,10 +304,7 @@ export default class OptionControl extends React.Component<
|
||||
*/
|
||||
@autobind
|
||||
handleSourceChange(source: 'custom' | 'api' | 'apicenter') {
|
||||
const {name, onChange} = this.props;
|
||||
this.setState({source}, () => {
|
||||
name && onChange?.(undefined);
|
||||
});
|
||||
this.setState({source: source}, this.onChange);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user