读取png乱码格式图片 .get("http://localhost:3000/images/logo.png", { responseType: "arraybuffer", }) .then((res) => { this.img = "data:image/png;base64," + btoa( new Uint8Array(res.data).reduce( (data, byte) => data + String.fromCharCode(byte), "" ) ); });