mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
12 lines
207 B
JavaScript
12 lines
207 B
JavaScript
|
export const successRequest = ({ onSuccess, file }) => {
|
||
|
setTimeout(() => {
|
||
|
onSuccess(null, file);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
export const errorRequest = ({ onError }) => {
|
||
|
setTimeout(() => {
|
||
|
onError();
|
||
|
});
|
||
|
};
|