mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-09 12:18:12 +00:00
fix: fixed
This commit is contained in:
parent
42c343a433
commit
3b35518cd0
@ -5,6 +5,7 @@ import useAgentChat from '@/hooks/useAgentChat';
|
|||||||
import ChatBoxComp from '@/components/chatBoxTemp';
|
import ChatBoxComp from '@/components/chatBoxTemp';
|
||||||
import { useDialogueContext } from '@/app/context/dialogue';
|
import { useDialogueContext } from '@/app/context/dialogue';
|
||||||
import { useSearchParams } from 'next/navigation';
|
import { useSearchParams } from 'next/navigation';
|
||||||
|
|
||||||
const AgentPage = () => {
|
const AgentPage = () => {
|
||||||
const searchParams = useSearchParams();
|
const searchParams = useSearchParams();
|
||||||
const { refreshDialogList } = useDialogueContext();
|
const { refreshDialogList } = useDialogueContext();
|
||||||
@ -20,7 +21,7 @@ const AgentPage = () => {
|
|||||||
|
|
||||||
const { data: paramsList } = useRequest(async () => await sendPostRequest(`/v1/chat/mode/params/list?chat_mode=${scene}`), {
|
const { data: paramsList } = useRequest(async () => await sendPostRequest(`/v1/chat/mode/params/list?chat_mode=${scene}`), {
|
||||||
ready: !!scene,
|
ready: !!scene,
|
||||||
refreshDeps: [scene]
|
refreshDeps: [id, scene]
|
||||||
});
|
});
|
||||||
|
|
||||||
const { history, handleChatSubmit } = useAgentChat({
|
const { history, handleChatSubmit } = useAgentChat({
|
||||||
|
@ -130,7 +130,7 @@ const LeftSider = () => {
|
|||||||
<ListItemContent>
|
<ListItemContent>
|
||||||
<Link href={`/chat?id=${each.conv_uid}&scene=${each?.chat_mode}`} className="flex items-center justify-between">
|
<Link href={`/chat?id=${each.conv_uid}&scene=${each?.chat_mode}`} className="flex items-center justify-between">
|
||||||
<Typography fontSize={14} noWrap={true}>
|
<Typography fontSize={14} noWrap={true}>
|
||||||
<SmsOutlinedIcon className='mr-2' />
|
<SmsOutlinedIcon style={{ marginRight: '0.5rem' }} />
|
||||||
{each?.user_name || each?.user_input || 'undefined'}
|
{each?.user_name || each?.user_input || 'undefined'}
|
||||||
</Typography>
|
</Typography>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
Loading…
Reference in New Issue
Block a user