Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirectError not work(4.5.2)!! #78

Closed
Harveyzhao opened this issue Jan 16, 2018 · 2 comments
Closed

redirectError not work(4.5.2)!! #78

Harveyzhao opened this issue Jan 16, 2018 · 2 comments

Comments

@Harveyzhao
Copy link

Harveyzhao commented Jan 16, 2018

Hello, when i upgrade this plugin to 4.5.2,it's not work~~
But I back to 3.1.0, it can work. (the version is my first time used)

This question is available on Nuxt.js community (#c70)
@Harveyzhao
Copy link
Author

wechatimg303
I must add 'disableDefaultErrorHandler: false,'(Default is false?) ,and remove errorHandler function,'redirectError' is working.
And another way , I only use 'errorHandler' and do redirect inside it, it also can work.

the source code <% } else if (options.disableDefaultErrorHandler === false) { %> maybe not work when I don't set disableDefaultErrorHandler to false ~

@pi0
Copy link
Member

pi0 commented Jan 28, 2018

Hi. With release 5.0.0 you have to use a plugin to manually handle error/redirects.

Please see Extending Axios section. Also please make sure to read Migration Guide.

If any problem exists, feel free opening a new Issue or PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants