feat translation of the user module

Signed-off-by: jingyang <3161362058@qq.com>
This commit is contained in:
jingyang
2023-08-02 10:50:38 +08:00
parent 911c5c00ba
commit 2f28f57d78
8 changed files with 111 additions and 25 deletions

View File

@@ -13,7 +13,7 @@ import { TrainingModeEnum } from '@/constants/plugin';
import FileSelect from './FileSelect';
import { useRouter } from 'next/router';
const nanoid = customAlphabet('abcdefghijklmnopqrstuvwxyz1234567890', 12);
import { readCsvContent } from '@/utils/file';
import { fileDownload, readCsvContent } from '@/utils/file';
const fileExtension = '.csv';
@@ -137,6 +137,7 @@ const CsvImport = ({ kbId }: { kbId: string }) => {
isLoading={selecting}
tipText={'如果导入文件乱码,请将 CSV 转成 utf-8 编码格式'}
py={emptyFiles ? '100px' : 5}
isCsv
/>
{!emptyFiles && (