Browse Source

同步用户新增代码bug

wangfumin 1 month ago
parent
commit
d1698ff7eb
1 changed files with 2 additions and 0 deletions
  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(","),
   });
 };