fix: plugin-request

This commit is contained in:
wanchun 2022-01-12 19:09:16 +08:00
parent 8282d6a398
commit 1fc01ba05f

View File

@ -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);