Fix: Fixed the issue that the agent embedded page needs to be logged in #9750 (#9751)

### What problem does this PR solve?

Fix: Fixed the issue that the agent embedded page needs to be logged in
#9750

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2025-08-27 14:18:00 +08:00
committed by GitHub
parent cf0011be67
commit cbdabbb58f
3 changed files with 18 additions and 8 deletions

View File

@ -158,6 +158,8 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
* @example disabled
*/
disabled?: boolean;
description?: string;
}
export function FileUploader(props: FileUploaderProps) {
@ -174,6 +176,7 @@ export function FileUploader(props: FileUploaderProps) {
multiple = false,
disabled = false,
className,
description,
...dropzoneProps
} = props;
const { t } = useTranslation();
@ -302,7 +305,7 @@ export function FileUploader(props: FileUploaderProps) {
{t('knowledgeDetails.uploadTitle')}
</p>
<p className="text-sm text-muted-foreground/70">
{t('knowledgeDetails.uploadDescription')}
{description || t('knowledgeDetails.uploadDescription')}
{/* You can upload
{maxFileCount > 1
? ` ${maxFileCount === Infinity ? 'multiple' : maxFileCount}