fix: return the full response
This commit is contained in:
parent
bc3550ab4b
commit
9a9283cc8a
|
@ -14,7 +14,7 @@ export const customInstance = <T>(
|
||||||
...config,
|
...config,
|
||||||
...options,
|
...options,
|
||||||
cancelToken: source.token,
|
cancelToken: source.token,
|
||||||
}).then(({ data }) => data);
|
});
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
promise.cancel = () => {
|
promise.cancel = () => {
|
||||||
|
|
Loading…
Reference in New Issue