Picker 的 loadOptions 请求没了

This commit is contained in:
liaoxuezhi 2019-12-16 10:49:58 +08:00
parent 960553aa97
commit b76f6de84c
1 changed files with 2 additions and 4 deletions

View File

@ -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;
}