Browse Source

密码加密

wangfumin 1 tháng trước cách đây
mục cha
commit
e33a5d2fc5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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(","),
   });
 };