const task = uni.request({
url: 'https://chatai.jiafeimao.shop/chat/stream',
method: 'POST',
enableChunked: true,
data: {
...data,
type: "ddaitt",
token: this.token
},
responseType :'text/html',
header: {
'content-type': 'application/x-www-form-urlencoded;charset=UTF-8',
},
success: (res) =>
console.log(res, '===scss')
}
})
task.onChunkReceived(res => {
console.log(res)
}
onChunkReceived里面接受不到,success里返回了数据
pc暂不支持此功能