接口添加 responseType:‘blob’
获取
let result = await this.$service.getCaptcha({})
const myBlob = new window.Blob([result], {type: 'image/jpeg'});
const captcha = window.URL.createObjectURL(myBlob); //获取图片地址
console.log('地址',captcha)
接口添加 responseType:‘blob’
获取
let result = await this.$service.getCaptcha({})
const myBlob = new window.Blob([result], {type: 'image/jpeg'});
const captcha = window.URL.createObjectURL(myBlob); //获取图片地址
console.log('地址',captcha)