Invalid vue axios setting responseType: 'blob'

as shown in the figure, after setting responseType: "blob", the obtained response is still the default json string. How to solve

Mar.23,2021

the reason I found here is that the mock module affects the native ajax request, making the blob returned by the server garbled


change the mockjs source code and add a new line of code to solve

image.png


I'd like to know how to solve this problem. I have encountered the same problem now, and I can't find out what the reason is

.
Menu