mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Fixed the issue where the chat page would jump after entering the homepage #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
16 lines
397 B
TypeScript
16 lines
397 B
TypeScript
import { useFetchDialogList } from '@/hooks/use-chat-request';
|
|
import { ApplicationCard } from './application-card';
|
|
|
|
export function ChatList() {
|
|
const { data } = useFetchDialogList(true);
|
|
|
|
return data
|
|
.slice(0, 10)
|
|
.map((x) => (
|
|
<ApplicationCard
|
|
key={x.id}
|
|
app={{ avatar: x.icon, title: x.name, update_time: x.update_time }}
|
|
></ApplicationCard>
|
|
));
|
|
}
|