mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
Fix navbar (#2273)
* fix: phone navbar cannot scroll; fix: file uplaod process error * perf: select repeat file
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user