mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 12:06:42 +08:00
feat: submit new password to backend and submit user information and add Form to UserSettingProfile (#114)
* feat: add Form to UserSettingProfile * feat: submit user information * feat: submit new password to backend
This commit is contained in:
@ -74,3 +74,16 @@ export const useLogout = () => {
|
||||
|
||||
return logout;
|
||||
};
|
||||
|
||||
export const useSaveSetting = () => {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const saveSetting = useCallback(
|
||||
(userInfo: { new_password: string } | IUserInfo): number => {
|
||||
return dispatch<any>({ type: 'settingModel/setting', payload: userInfo });
|
||||
},
|
||||
[dispatch],
|
||||
);
|
||||
|
||||
return saveSetting;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user