收藏
回答

PC端,onChunkReceived接收不到信息,是不支持吗?

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里返回了数据

回答关注问题邀请回答
收藏

1 个回答

  • Demons
    Demons
    2023-12-11

    pc暂不支持此功能

    2023-12-11
    有用
    回复
登录 后发表内容