暂存,修改navigate和添加图片

This commit is contained in:
2024-10-12 12:38:19 +08:00
parent 929aaebf20
commit 3eaa94eb46
29 changed files with 244 additions and 58 deletions

View File

@@ -5,11 +5,11 @@ import { Button, Dropdown, Form, Input, message, Modal, Tooltip } from 'antd';
import { useEffect, useLayoutEffect, useMemo, useState } from 'react';
import { TextArea } from '../container/components/TextArea';
import clsx from 'clsx';
import { query } from '@/modules';
import { query, useNewNavigate } from '@/modules';
import { nanoid } from 'nanoid';
import { ChatMessage } from './module/ChatMessage';
import { isObjectNull } from '@/utils/is-null';
import { useLocation, useNavigate } from 'react-router';
import { useLocation } from 'react-router';
const testId = '60aca66b-4be9-4266-9568-6001032c7e13';
const NormalMessage = ({ onSend }: { onSend: any }) => {
const [message, setMessage] = useState('');
@@ -173,7 +173,7 @@ export const useListenQuery = () => {
export const AiMoudle = () => {
const [form] = Form.useForm();
const navigate = useNavigate();
const navigate = useNewNavigate();
const aiStore = useAiStore(
useShallow((state) => {
return {