diff --git a/packages/ui/src/views/assistants/custom/CustomAssistantLayout.jsx b/packages/ui/src/views/assistants/custom/CustomAssistantLayout.jsx index b7969975..ba339339 100644 --- a/packages/ui/src/views/assistants/custom/CustomAssistantLayout.jsx +++ b/packages/ui/src/views/assistants/custom/CustomAssistantLayout.jsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' // material-ui -import { Box, Stack, Skeleton } from '@mui/material' +import { Box, Button, Stack, Skeleton } from '@mui/material' // project imports import ViewHeader from '@/layout/MainLayout/ViewHeader' @@ -22,6 +22,7 @@ import useApi from '@/hooks/useApi' // icons import { IconPlus } from '@tabler/icons-react' +import { PiPlus } from 'react-icons/pi' // ==============================|| CustomAssistantLayout ||============================== // @@ -99,9 +100,9 @@ const CustomAssistantLayout = () => { title='自定义助理' onBack={() => navigate(-1)} > - }> + {isLoading ? ( diff --git a/packages/ui/src/views/assistants/openai/OpenAIAssistantLayout.jsx b/packages/ui/src/views/assistants/openai/OpenAIAssistantLayout.jsx index 10c5c2e2..feab4e54 100644 --- a/packages/ui/src/views/assistants/openai/OpenAIAssistantLayout.jsx +++ b/packages/ui/src/views/assistants/openai/OpenAIAssistantLayout.jsx @@ -23,6 +23,7 @@ import useApi from '@/hooks/useApi' import { IconPlus, IconFileUpload } from '@tabler/icons-react' import AssistantEmptySVG from '@/assets/images/assistant_empty.svg' import { gridSpacing } from '@/store/constant' +import { PiPlus, PiUpload } from 'react-icons/pi' // ==============================|| OpenAIAssistantLayout ||============================== // @@ -121,17 +122,12 @@ const OpenAIAssistantLayout = () => { title='OpenAI 助理' onBack={() => navigate(-1)} > - + - }> - Add - {isLoading ? (