ant-design-vue/components/upload/__tests__/requests.js
siaikin 670ff3f857
fix: useMergedState is not updated in time (#6402)
Co-authored-by: siaikin <abc131054026@outlook.com>
2023-04-05 08:25:18 +08:00

16 lines
275 B
JavaScript

export const successRequest = ({ onSuccess, file }) => {
setTimeout(() => {
onSuccess(null, file);
});
};
export const errorRequest = ({ onError }) => {
setTimeout(() => {
onError();
});
};
export const syncErrorRequest = ({ onError }) => {
onError();
};