From 8b17694cdf801da3350f255bd2f26de733529de6 Mon Sep 17 00:00:00 2001 From: icarus Date: Fri, 22 Aug 2025 17:45:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(useFiles):=20=E5=B0=86=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=BB=8E=E5=B8=83=E5=B0=94=E5=80=BC=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E4=BB=A5=E5=A2=9E=E5=BC=BA=E5=8F=AF=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/hooks/useFiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/hooks/useFiles.ts b/src/renderer/src/hooks/useFiles.ts index 1f96c4e79a..1379615f32 100644 --- a/src/renderer/src/hooks/useFiles.ts +++ b/src/renderer/src/hooks/useFiles.ts @@ -33,7 +33,7 @@ export const useFiles = (props?: Props) => { * 4. 当选择了不支持的文件类型时,会显示提示信息 */ const onSelectFile = useCallback( - async (multipleSelections: boolean = true): Promise => { + async ({ multipleSelections = true }: { multipleSelections?: boolean }): Promise => { if (selecting) { return [] }