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();
|
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
Block a user