feat: fixed the issue that some PDF documents could not be displayed on the chunk list page in small screens and logout (#105)

* feat: logout

* feat: fixed the issue that some PDF documents could not be displayed on the chunk list page in small screens
This commit is contained in:
balibabu
2024-03-07 11:38:32 +08:00
committed by GitHub
parent aaf3084324
commit 6048926a4d
10 changed files with 89 additions and 50 deletions

View File

@ -64,3 +64,13 @@ export const useSelectParserList = (): Array<{
return parserList;
};
export const useLogout = () => {
const dispatch = useDispatch();
const logout = useCallback((): number => {
return dispatch<any>({ type: 'loginModel/logout' });
}, [dispatch]);
return logout;
};