amis-saas-7095 [Bug] 前端select调用api 预览态返回设计态 接口配置异常

Change-Id: I3c4e62a8e2cf5153da948f466dc064a930b4eadd
This commit is contained in:
RickCole21 2022-09-20 20:19:15 +08:00
parent a0ea7176d5
commit b034c38a29

View File

@ -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);
}
/**