This time I will show you how to solve the incompatibility of axios in ie, and what are the precautions to solve the incompatibility of axios in ie. The following is a practical case, let's take a look.
First of all, although axios supports ie8+, its principle is based on promise.So there will be incompatibility issues with ie, that is, the trident kernel will not work at all,
Report: vuex requires a Promise polyfill in this browser
##Solution: 1.
Installbabel-polyfill2. Modify the build configuration environment as shown below or directly import
After that, restart the project and it will be done.
The data acquisition is normal~
I believe you have mastered the method after reading the case in this article. For more exciting things, please pay attention to other php Chinese websites. related articles!
Recommended reading:
Why axios http request cannot be used in vue2Why springMVC cannot receive parameters when sending post requestThe above is the detailed content of How to solve the incompatibility of axios in ie. For more information, please follow other related articles on the PHP Chinese website!