显示后端返回的图片(验证码)
在请求头中配置
responseType: "blob"
请求成功后
image.url = window.URL.createObjectURL(new Blob([res.data],{type:"image/jpeg"}))
我其实也有努力呀
在请求头中配置
responseType: "blob"
请求成功后
image.url = window.URL.createObjectURL(new Blob([res.data],{type:"image/jpeg"}))