From 2aa0b4e521c1d76534fc476c9dabd80e6bc93ab2 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期四, 24 四月 2025 11:22:10 +0800
Subject: [PATCH] update vite.config.js

---
 src/api/system/user.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/api/system/user.js b/src/api/system/user.js
index 9b949e9..2da13d4 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -96,7 +96,7 @@
   return request({
     url: '/system/user/profile/updatePwd',
     method: 'put',
-    params: data
+    data: data
   })
 }
 
@@ -105,6 +105,7 @@
   return request({
     url: '/system/user/profile/avatar',
     method: 'post',
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
     data: data
   })
 }

--
Gitblit v1.9.3