// 设置请求头为application/x-www-form-urlencoded, 设置返回数据格式为arraybuffer
axios.post(process.env.VUE_APP_BASE_IP + '/tky/tky/vuelogin/captcha.html', {headers: {'Content-Type': 'application/x-www-form-urlencoded'}}, {responseType:"arraybuffer"}).then(res => {
// 这里将得到的图片流转换成blob类型
const blob = new Blob([res.data], {
type: 'application/png;charset=utf-8',
});
const url = window.URL.createObjectURL(blob);
this.verifyPic = url;
})