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

axios中的拦截事件会重复叠加 #19

Open
jinghh opened this issue Sep 9, 2019 · 1 comment
Open

axios中的拦截事件会重复叠加 #19

jinghh opened this issue Sep 9, 2019 · 1 comment

Comments

@jinghh
Copy link

jinghh commented Sep 9, 2019

在plugins/axios.js 中给axios添加请求拦截事件,拦截器会叠加器,每次刷新都会叠加一次,越加越多。我的项目就是遇到这样的问题,试了下作者这个项目也有这个问题.....是否这种自定义的方式就不可取呢?难道只能换成@nuxt/axios这一条路了么。。

@jinghh
Copy link
Author

jinghh commented Sep 9, 2019

image

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

1 participant