From 18e0b0a45ab4969e49884bb3ae088c273c50eeea Mon Sep 17 00:00:00 2001 From: Silow <99187811+Silow9@users.noreply.github.com> Date: Thu, 24 Apr 2025 13:41:03 +0800 Subject: [PATCH] Update index.tsx delete extra comment --- web/app/components/datasets/create/file-uploader/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/datasets/create/file-uploader/index.tsx b/web/app/components/datasets/create/file-uploader/index.tsx index 3703840c7d..b03532df0b 100644 --- a/web/app/components/datasets/create/file-uploader/index.tsx +++ b/web/app/components/datasets/create/file-uploader/index.tsx @@ -204,7 +204,7 @@ const FileUploader = ({ return new Promise((resolve) => { if (entry.isFile) { entry.file((file: FileWithPath) => { - file.relativePath = `${prefix}${file.name}` // 保留相对路径 + file.relativePath = `${prefix}${file.name}` resolve([file]) }) } @@ -234,7 +234,7 @@ const FileUploader = ({ } }) }, - [], // ← 依赖为空,引用稳定 + [], ) const handleDrop = useCallback(