From 0ab4165788565979ca320b5a670db96acd3c785b Mon Sep 17 00:00:00 2001 From: haha Date: Thu, 2 Jan 2025 22:40:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E5=83=8F=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E4=B8=8A=E4=BC=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-ui-vue3/src/api/system/user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yanzhu-ui-vue3/src/api/system/user.js b/yanzhu-ui-vue3/src/api/system/user.js index dc75a6d2..d0d83d00 100644 --- a/yanzhu-ui-vue3/src/api/system/user.js +++ b/yanzhu-ui-vue3/src/api/system/user.js @@ -114,6 +114,9 @@ export function uploadAvatar(data) { return request({ url: '/system/user/profile/avatar', method: 'post', + headers: { + 'Content-Type': 'multipart/form-data' + }, data: data }) }