feat: bind length of conversationList to chat count (#116)

This commit is contained in:
balibabu
2024-03-08 19:33:33 +08:00
committed by GitHub
parent bcb58b7e71
commit c7c451bb9f
5 changed files with 33 additions and 43 deletions

View File

@ -66,7 +66,7 @@ export const useSelectParserList = (): Array<{
};
export const useLogout = () => {
const dispatch = useDispatch();
const dispatch = useDispatch(); // TODO: clear redux state
const logout = useCallback((): number => {
return dispatch<any>({ type: 'loginModel/logout' });