head ,csv template and limit content size

This commit is contained in:
archer
2023-08-02 14:52:27 +08:00
parent ae95a8908e
commit 58d94e1018
6 changed files with 20 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ const FileSelect = ({
...props
}: Props) => {
const { Loading: FileSelectLoading } = useLoading();
const csvTemplate = `question,answer\n"什么是 laf","laf 是一个云函数开发平台……"\n"什么是 sealos","Sealos 是以 kubernetes 为内核的云操作系统发行版,可以……"`;
const csvTemplate = `question,answer,source\n"什么是 laf","laf 是一个云函数开发平台……","laf git doc"\n"什么是 sealos","Sealos 是以 kubernetes 为内核的云操作系统发行版,可以……","sealos git doc"`;
const { File, onOpen } = useSelectFile({
fileType: fileExtension,
@@ -72,7 +72,7 @@ const FileSelect = ({
})
}
>
csv模
CSV
</Box>
)}
<FileSelectLoading loading={isLoading} fixed={false} />