fix: fixed

This commit is contained in:
changhuiping.chp 2023-07-03 18:47:29 +08:00
parent 42c343a433
commit 3b35518cd0
2 changed files with 3 additions and 2 deletions

View File

@ -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({

View File

@ -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