axios
  .get('/captcha', {
    params: param,
    responseType: 'arraybuffer'
  })
  .then(response => {
    return 'data:image/png;base64,' + btoa(
      new Uint8Array(response.data)
        .reduce((data, byte) => data + String.fromCharCode(byte), '')
    );
  }).then(data => {
    ...
  })

相关文章:

  • 2021-09-27
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-11-07
  • 2021-12-14
  • 2022-12-23
  • 2022-02-24
相关资源
相似解决方案