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