perf: 对话框优化;feat: 模糊搜索

This commit is contained in:
archer
2023-04-20 23:06:30 +08:00
parent 02abe42afe
commit 3c0fa30aaf
7 changed files with 86 additions and 26 deletions

View File

@@ -13,8 +13,8 @@ import styles from './index.module.scss';
import { codeLight } from './codeLight';
const Markdown = ({ source, isChatting = false }: { source: string; isChatting?: boolean }) => {
const formatSource = useMemo(() => source, [source]);
const { copyData } = useCopyData();
const formatSource = useMemo(() => source, [source]);
return (
<ReactMarkdown