forked from p96170835/amis
Picker 的 loadOptions 请求没了
This commit is contained in:
parent
960553aa97
commit
b76f6de84c
|
@ -174,6 +174,7 @@ export function registerOptionsControl(config: OptionsConfig) {
|
|||
}
|
||||
|
||||
loadOptions &&
|
||||
config.autoLoadOptionsFromSource !== false &&
|
||||
(formInited
|
||||
? this.reload()
|
||||
: addHook && addHook(this.initOptions, 'init'));
|
||||
|
@ -428,10 +429,7 @@ export function registerOptionsControl(config: OptionsConfig) {
|
|||
reload() {
|
||||
const {source, formItem, data, onChange} = this.props;
|
||||
|
||||
if (
|
||||
!formItem ||
|
||||
!isEffectiveApi(source, data)
|
||||
) {
|
||||
if (!formItem || !isEffectiveApi(source, data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue