Browse Source

feat: 增加password字段

gemercheung 1 year ago
parent
commit
81c0404c03
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/store/user.ts

+ 2 - 0
src/store/user.ts

@@ -102,8 +102,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(","),
   });
 };