views 缓存干掉

This commit is contained in:
liaoxuezhi 2019-11-15 15:27:12 +08:00
parent 53f51edbe2
commit 2944b842b3

View File

@ -106,7 +106,7 @@ export const FormItemStore = types
return getLastOptionValue(); return getLastOptionValue();
}, },
getSelectedOptions: memoize((value: any = getValue()) => { getSelectedOptions: (value: any = getValue()) => {
if (typeof value === 'undefined') { if (typeof value === 'undefined') {
return []; return [];
} }
@ -164,7 +164,7 @@ export const FormItemStore = types
}); });
return selectedOptions; return selectedOptions;
}) }
}; };
}) })
@ -599,8 +599,7 @@ export const FormItemStore = types
setSubStore, setSubStore,
reset, reset,
openDialog, openDialog,
closeDialog, closeDialog
beforeDetach: () => self.getSelectedOptions.cache.clear!()
}; };
}); });