ant-design-vue/components/upload/__tests__/requests.js

16 lines
275 B
JavaScript
Raw Normal View History

2018-05-31 16:36:59 +08:00
export const successRequest = ({ onSuccess, file }) => {
setTimeout(() => {
2019-01-12 11:33:27 +08:00
onSuccess(null, file);
});
};
2018-05-31 16:36:59 +08:00
export const errorRequest = ({ onError }) => {
setTimeout(() => {
2019-01-12 11:33:27 +08:00
onError();
});
};
export const syncErrorRequest = ({ onError }) => {
onError();
};