Skip to content

Commit

Permalink
fix: 编辑器图片上传不成功问题修复 --story=121000017
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 27375
  • Loading branch information
ywywZhou committed Dec 20, 2024
1 parent 8990a3a commit 7d1a0ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
await axios({
url: resp.upload_url,
method: 'put',
body: blob, // 直接将 File 对象作为请求体
data: blob, // 直接将 File 对象作为请求体
withCredentials: false,
headers: {
'content-Type': blob.type // 使用文件本身的类型
Expand Down

0 comments on commit 7d1a0ee

Please sign in to comment.