diff --git a/web/components/knowledge/doc-upload-form.tsx b/web/components/knowledge/doc-upload-form.tsx index 188190dc3..81ec91978 100644 --- a/web/components/knowledge/doc-upload-form.tsx +++ b/web/components/knowledge/doc-upload-form.tsx @@ -6,6 +6,7 @@ import { apiInterceptors, addDocument, uploadDocument } from '@/client/api'; import { RcFile, UploadChangeParam } from 'antd/es/upload'; import { File, StepChangeParams } from '@/types/knowledge'; import { UploadRequestOption as RcCustomRequestOptions } from 'rc-upload/lib/interface'; +import classNames from 'classnames'; type FileParams = { file: RcFile; @@ -13,6 +14,7 @@ type FileParams = { }; type IProps = { + className: string; handleStepChange: (params: StepChangeParams) => void; spaceName: string; docType: string; @@ -30,7 +32,7 @@ const { Dragger } = Upload; const { TextArea } = Input; export default function DocUploadForm(props: IProps) { - const { handleStepChange, spaceName, docType } = props; + const { className, handleStepChange, spaceName, docType } = props; const { t } = useTranslation(); const [form] = Form.useForm(); const [spinning, setSpinning] = useState(false); @@ -186,7 +188,7 @@ export default function DocUploadForm(props: IProps) {
{ const [spaceList, setSpaceList] = useState | null>([]); @@ -94,7 +95,12 @@ const Knowledge = () => { {activeStep === 0 && } {activeStep === 1 && } - {activeStep === 2 && } + {activeStep === 3 && }