feat: add Login and fix res error
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useShallow } from 'zustand/react/shallow';
|
||||
import { useAiStore } from './store/ai-store';
|
||||
import { CloseOutlined } from '@ant-design/icons';
|
||||
import { CloseOutlined, HistoryOutlined } from '@ant-design/icons';
|
||||
import { Button, Form, Input } from 'antd';
|
||||
import { useEffect } from 'react';
|
||||
import { TextArea } from '../container/components/TextArea';
|
||||
@@ -49,6 +49,9 @@ export const AiMoudle = () => {
|
||||
<div className='flex gap-4 bg-slate-400 p-2'>
|
||||
<Button className='position ml-4 !bg-slate-400 !border-black' onClick={() => aiStore.setOpen(false)} icon={<CloseOutlined />}></Button>
|
||||
<h1 className='ml-10'>Ai Moudle</h1>
|
||||
<div>
|
||||
<HistoryOutlined />
|
||||
</div>
|
||||
</div>
|
||||
<div className='flex-grow p-2 overflow-hidden h-full flex flex-col'>
|
||||
<div className='flex flex-col'>
|
||||
@@ -58,8 +61,9 @@ export const AiMoudle = () => {
|
||||
return (
|
||||
<div key={index} className=' justify-between px-4 w-full'>
|
||||
<div className='h3 font-bold'>{message?.role}</div>
|
||||
<div className='p-4 text-xs border shadow-sm rounded-sm scrollbar max-h-[200px] w-full overflow-scroll' dangerouslySetInnerHTML={{ __html: html }}>
|
||||
</div>
|
||||
<div
|
||||
className='p-4 text-xs border shadow-sm rounded-sm scrollbar max-h-[200px] w-full overflow-scroll'
|
||||
dangerouslySetInnerHTML={{ __html: html }}></div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user