wangfumin 1 ماه پیش
والد
کامیت
e33a5d2fc5
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(","),
   });
 };