mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
views 缓存干掉
This commit is contained in:
parent
53f51edbe2
commit
2944b842b3
@ -106,7 +106,7 @@ export const FormItemStore = types
|
||||
return getLastOptionValue();
|
||||
},
|
||||
|
||||
getSelectedOptions: memoize((value: any = getValue()) => {
|
||||
getSelectedOptions: (value: any = getValue()) => {
|
||||
if (typeof value === 'undefined') {
|
||||
return [];
|
||||
}
|
||||
@ -164,7 +164,7 @@ export const FormItemStore = types
|
||||
});
|
||||
|
||||
return selectedOptions;
|
||||
})
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
@ -599,8 +599,7 @@ export const FormItemStore = types
|
||||
setSubStore,
|
||||
reset,
|
||||
openDialog,
|
||||
closeDialog,
|
||||
beforeDetach: () => self.getSelectedOptions.cache.clear!()
|
||||
closeDialog
|
||||
};
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user