forked from p96170835/amis
views 缓存干掉
This commit is contained in:
parent
ef798ae30c
commit
64751163b5
|
@ -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!()
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue