ant-design-vue/components/upload/__tests__/requests.js
2018-05-31 16:36:59 +08:00

12 lines
201 B
JavaScript

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