axios通过流来获取图片
this.$axios.get('/api/ui/ombs/getCode',{
responseType: 'arraybuffer'
}).then(response => {
return 'data:image/png;base64,' + btoa(new Uint8Array(response.data).reduce((data, byte) => data + String.fromCharCode(byte), ''));
}).then(res => {
this.codeImgUrl=res
})