win7系统 64位 微信开发者工具 wechat_devtools_1.05.2204250_x64
requestTask.onChunkReceived((res) => {
let decoder = new TextDecoder('utf-8');
let text = decoder.decode(new Uint8Array(res.data));
if (text.indexOf('[DONE]') === -1) {
const chat = JSON.parse(text.substring(5));
if (chat.code === 0) {
const answer = list.find(p => p.type == 1 && p.chatId === chatId);
if (answer) {
answer.text = [...answer.text, ...this.analysisChat(chat)];
} else {
list.push({
chatId: chatId,
type: 1,
text: [...this.analysisChat(chat)]
})
}
this.setData({
bottomViewId: "view" + this.data.messageId,
list: list
});
}
} else {
this.setData({
loading: false
})
console.log("回答完毕");
}
});

建议使用最新版开发工具,目前最新版开发工具已不支持Windows7,需要更新到Windows10以上。总的来说还是建议更新系统。
现在情况是同样的代码在同事电脑上没得任何问题,我本地的差异就是微信开发工具不是最新版本,本地环境win7系统更新后开发工具无法打开,所以就没有升级。而工具升级里面有关于SSE相关的,不知道是不是因为工具版本原因导致的