fixL bug
This commit is contained in:
@@ -23,8 +23,8 @@ function streamRequest(options) {
|
||||
onError
|
||||
} = options
|
||||
|
||||
headers['Accept'] = 'text/event-stream'
|
||||
headers['Content-Type'] = 'application/json;charset=UTF-8'
|
||||
// headers['Accept'] = 'text/event-stream'
|
||||
headers['Content-Type'] = 'text/event-stream'
|
||||
headers['summary'] = token
|
||||
|
||||
// 创建请求任务
|
||||
@@ -33,8 +33,10 @@ function streamRequest(options) {
|
||||
method,
|
||||
data,
|
||||
header: headers,
|
||||
responseType: 'arraybuffer',
|
||||
...baseConfig,
|
||||
success: (res) => {
|
||||
console.log(res.data)
|
||||
onComplete?.(res)
|
||||
},
|
||||
fail: (err) => {
|
||||
|
||||
Reference in New Issue
Block a user