fix: 知识库-导入-QA 中提示可以选择 md 和 html 文件,但是确无法选择 md 和 html 文件。是因为 QA.tsx中定义的fileExtension变量少写了一个逗号,我加上了这个逗号。 (#672)

This commit is contained in:
xavierxcn 2023-12-30 12:40:30 +08:00 committed by GitHub
parent 5b676ff4ad
commit ccca0468da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import { useImportStore, SelectorContainer, PreviewFileOrChunk } from './Provide
import { useDatasetStore } from '@/web/core/dataset/store/dataset';
import { useTranslation } from 'next-i18next';
const fileExtension = '.txt, .docx, .pdf, .md .html';
const fileExtension = '.txt, .docx, .pdf, .md, .html';
const QAImport = () => {
const { t } = useTranslation();