소스 검색

密码加密

wangfumin 1 개월 전
부모
커밋
e33a5d2fc5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/store/user.ts

+ 2 - 0
src/store/user.ts

@@ -93,8 +93,10 @@ export const addUser = async (
   params: Omit<UserInfo, "id">,
   deptPath: string[]
 ) => {
+  const password = encodePwd(params.password);
   await axios.post(userAdd, {
     ...params,
+    password,
     deptIdList: deptPath.join(","),
   });
 };