Pārlūkot izejas kodu

update 优化 涉及到用户密码的接口 均设置请求加密

疯狂的狮子Li 1 gadu atpakaļ
vecāks
revīzija
9087fad3fe
2 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 3 0
      src/api/system/tenant/index.ts
  2. 6 0
      src/api/system/user/index.ts

+ 3 - 0
src/api/system/tenant/index.ts

@@ -24,6 +24,9 @@ export function addTenant(data: TenantForm) {
   return request({
     url: '/system/tenant',
     method: 'post',
+    headers: {
+      isEncrypt: true
+    },
     data: data
   });
 }

+ 6 - 0
src/api/system/user/index.ts

@@ -74,6 +74,9 @@ export const resetUserPwd = (userId: string | number, password: string) => {
   return request({
     url: '/system/user/resetPwd',
     method: 'put',
+    headers: {
+      isEncrypt: true
+    },
     data: data
   });
 };
@@ -130,6 +133,9 @@ export const updateUserPwd = (oldPassword: string, newPassword: string) => {
   return request({
     url: '/system/user/profile/updatePwd',
     method: 'put',
+    headers: {
+      isEncrypt: true
+    },
     params: data
   });
 };