ant-design-vue/components/upload/__tests__/requests.js
2019-01-12 12:46:29 +08:00

12 lines
207 B
JavaScript

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