diff --git a/src/api/arraybuffer.js b/src/api/arraybuffer.js index 45a922f2..fd835f86 100644 --- a/src/api/arraybuffer.js +++ b/src/api/arraybuffer.js @@ -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) => { diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue index 4140086e..4cbb7541 100644 --- a/src/pages/course/components/talkingItem.vue +++ b/src/pages/course/components/talkingItem.vue @@ -1,4 +1,4 @@ - + +