From 7d1a0ee29a66338e56498ab39172db3a4c83db05 Mon Sep 17 00:00:00 2001 From: v_xugzhou <941071842@qq.com> Date: Fri, 20 Dec 2024 14:48:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=96=E8=BE=91=E5=99=A8=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=B8=8A=E4=BC=A0=E4=B8=8D=E6=88=90=E5=8A=9F=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D=20--story=3D121000017=20#=20Reviewe?= =?UTF-8?q?d,=20transaction=20id:=2027375?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TemplateList/SharedTemplate/markdownEditor/editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/desktop/src/pages/template/TemplateList/SharedTemplate/markdownEditor/editor.vue b/frontend/desktop/src/pages/template/TemplateList/SharedTemplate/markdownEditor/editor.vue index c73ce3fd3..c6846b078 100644 --- a/frontend/desktop/src/pages/template/TemplateList/SharedTemplate/markdownEditor/editor.vue +++ b/frontend/desktop/src/pages/template/TemplateList/SharedTemplate/markdownEditor/editor.vue @@ -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 // 使用文件本身的类型