Skip to content

Commit

Permalink
2.9.2 文件相关
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobaidadada committed Feb 14, 2025
1 parent 7e595a7 commit a857e21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "filecat",
"version": "2.9.1",
"version": "2.9.2",
"description": "filecat 文件管理器",
"author": "xiaobaidadada",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/web/project/component/file/FileItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { MAX_SIZE_TXT } from '../../../../common/ValueUtil';
export function FileItem(props: FileItemData & { index?: number, itemWidth?: string }) {
const [selectList, setSelectList] = useRecoilState($stroe.selectedFileList);
const [clickList, setClickList] = useRecoilState($stroe.clickFileList);
const [nowFileList, setNowFileList] = useRecoilState($stroe.nowFileList);
const [enterKey,setEnterKey] = useRecoilState($stroe.enterKey);
const { click_file } = user_click_file();
const {t} = useTranslation();
Expand Down Expand Up @@ -72,6 +73,7 @@ export function FileItem(props: FileItemData & { index?: number, itemWidth?: str
navigate(webPathJoin(getRouterPath(), name))
setSelectList([])
setClickList([])
setNowFileList({files:[],folders:[]});
return;
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/web/project/component/prompts/FilesUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function FilesUpload() {
setProgresses(uploadFiles.map(() => 0));
speedRef.current = { totalLoaded: 0, lastTime: Date.now() };

const MAX_CONCURRENT = 20; // 最大并发数
const MAX_CONCURRENT = 3; // 最大并发数 对于机械硬盘 3 个已经可以了
let currentIndex = 0;
let activeWorkers = 0;
let hasError = false;
Expand Down

0 comments on commit a857e21

Please sign in to comment.