Update request.js

This commit is contained in:
Edwin Betancourt 2020-10-01 08:38:12 -04:00 committed by GitHub
parent 44f4256acf
commit a61e652b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -67,9 +67,8 @@ service.interceptors.response.use(
}) })
} }
return Promise.reject(new Error(res.message || 'Error')) return Promise.reject(new Error(res.message || 'Error'))
} else {
return res
} }
return res
}, },
error => { error => {
console.log('err' + error) // for debug console.log('err' + error) // for debug