mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
fix(amis-saas-8381): select数据配置面板问题修正
Change-Id: I47acd8a76dd77e8222ec2642035b1660bb8f151d
This commit is contained in:
parent
467c9dd3c6
commit
8a87d27ab9
@ -59,7 +59,7 @@ export default class OptionControl extends React.Component<
|
|||||||
|
|
||||||
let source: 'custom' | 'api' | 'apicenter' = 'custom';
|
let source: 'custom' | 'api' | 'apicenter' = 'custom';
|
||||||
|
|
||||||
if (props.data.source) {
|
if (props.data.hasOwnProperty('source') && props.data.source) {
|
||||||
const api = props.data.source;
|
const api = props.data.source;
|
||||||
const url =
|
const url =
|
||||||
typeof api === 'string'
|
typeof api === 'string'
|
||||||
@ -796,7 +796,7 @@ export default class OptionControl extends React.Component<
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{this.renderApiPanel()}
|
{(source === 'api' || source === 'apicenter') && this.renderApiPanel()}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user