hejianhao
2025-05-08 89ea93ff37fd5adcb39c7caad1101970dc78e38c
1
2
3
4
5
6
7
8
9
10
export const customRequest = (params) => {
  const { file, onSuccess, onError } = params;
  uploadObs(file)
    .then((ret) => {
      onSuccess(ret);
    })
    .catch((ret) => {
      onError();
    });
};