mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: plugin-request
This commit is contained in:
parent
6877acc624
commit
00acb5b262
@ -182,7 +182,7 @@ export const request = (url, data, options = {}) => {
|
||||
|
||||
return currentRequestInstance.request(context).then(async () => {
|
||||
if (!context.error) {
|
||||
return context.config.useResonse ? context.response : context.response.data;
|
||||
return context.config.useResponse ? context.response : context.response.data;
|
||||
}
|
||||
await handleRequestError(context);
|
||||
return Promise.reject(context.error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user