hejianhao
2025-04-24 c76e6648647e6174f4070313887d353a36e6d17c
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();
    });
};