From 58d7e50de3432a4772ec0749661ec1f51c9c6086 Mon Sep 17 00:00:00 2001
From: NickLuo <69481226@qq.com>
Date: 星期三, 13 十二月 2023 08:55:46 +0800
Subject: [PATCH] !63 关闭动态路由tab页签时不清理组件缓存 * 动态路由页面关闭时不清理组件缓存,避免清理已打开的多个路由页面缓存

---
 src/api/system/user/index.ts |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts
index f00a0e3..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
   });
 };
 
@@ -175,8 +181,8 @@
  */
 export const listUserByDeptId = (deptId: string | number): AxiosPromise<UserVO[]> => {
   return request({
-    url: "/system/user/list/dept/" + deptId,
-    method: "get"
+    url: '/system/user/list/dept/' + deptId,
+    method: 'get'
   });
 };
 

--
Gitblit v1.9.3