Fix navbar (#2273)

* fix: phone navbar cannot scroll; fix: file uplaod process error

* perf: select repeat file
This commit is contained in:
Archer
2024-08-06 11:49:52 +08:00
committed by GitHub
parent f35ba8e5a7
commit 96ebec9809
6 changed files with 61 additions and 52 deletions

View File

@@ -26,6 +26,7 @@ export const useSelectFile = (props?: {
multiple={multiple}
onChange={(e) => {
const files = e.target.files;
if (!files || files?.length === 0) return;
let fileList = Array.from(files);
@@ -37,6 +38,8 @@ export const useSelectFile = (props?: {
fileList = fileList.slice(0, maxCount);
}
onSelect(fileList, openSign.current);
e.target.value = '';
}}
/>
</Box>