//返回Blob二进制流 客户端需要展示需要解析数据
// 解析Blob进制流
const reader = new FileReader();
// Blob {size: 121, type: '',data:Blob }
// 是否返回是二进制流 默认是Blob类型的
const data = Blob {size: 121, type: '',data:Blob }
let result = null;
if (data instanceof Blob) {
reader.readAsText(data, "UTF-8");
reader.onload = (e) => {
result = JSON.parse(reader.result);
// 判断当前是本人 本人的话统一将数据排到右侧
if (username === result.username) {
result.right = true;
}
state.msgListSelf.push(result);
};
}