소스 검색

同步用户新增代码bug

wangfumin 1 개월 전
부모
커밋
d1698ff7eb
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(","),
   });
 };