From 7b7377fa1b051306dffe4633c48be92bf0d3f8ff Mon Sep 17 00:00:00 2001
From: LiuHao <liuhaoai545@gmail.com>
Date: 星期二, 16 一月 2024 09:51:51 +0800
Subject: [PATCH] update 优化request请求类判断请求头方式

---
 src/api/system/user/index.ts |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts
index d0a4b5a..fdcafc2 100644
--- a/src/api/system/user/index.ts
+++ b/src/api/system/user/index.ts
@@ -74,6 +74,9 @@
   return request({
     url: '/system/user/resetPwd',
     method: 'put',
+    headers: {
+      isEncrypt: true
+    },
     data: data
   });
 };
@@ -130,7 +133,10 @@
   return request({
     url: '/system/user/profile/updatePwd',
     method: 'put',
-    params: data
+    headers: {
+      isEncrypt: true
+    },
+    data: data
   });
 };
 

--
Gitblit v1.9.3