From 8b4800e148b2dc42cc63460f13cc38b1d527823b Mon Sep 17 00:00:00 2001 From: Vsion <442153598@qq.com> Date: Wed, 28 Feb 2024 23:19:28 +0800 Subject: [PATCH] fix: const type err --- src/app/[locale]/chat/bot/create/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/[locale]/chat/bot/create/page.tsx b/src/app/[locale]/chat/bot/create/page.tsx index 7d6a50c..e3a4b28 100644 --- a/src/app/[locale]/chat/bot/create/page.tsx +++ b/src/app/[locale]/chat/bot/create/page.tsx @@ -39,7 +39,7 @@ const getBase64 = (img: any, callback: (url: string) => void) => { const BotCreate = React.memo(() => { const t = useTranslations('create'); - const AGENT_CLASSIFICATION_MAP: AgentClassification[] = React.useMemo( + const AGENT_CLASSIFICATION_MAP: AgentClassification[] = React.useMemo(() => [ { text: t('page.tongYongDuiHua'), value: t('page.tongYongDuiHua') }, { text: t('page.gongZuoXueXi'), value: t('page.gongZuoXueXi') },