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