for example, the project is a vue-cli single-page application, so even in the jump routing, the request on the previous page will not stop, which will cause a series of problems.
found a way to cancel the request in the official document of axios, so I tried it in my encapsulated axios, but failed. Ask for advice
figure: I created an instance of axios in base.js and configured canceltoken
Q: now I want to call the cancel method before each hop route (my beforeEach is in main.js)