From 5cd6c980cec34526241027dc6d6eb9a8c8987358 Mon Sep 17 00:00:00 2001 From: Silow9 Date: Thu, 24 Apr 2025 16:13:49 +0800 Subject: [PATCH] delete 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..5ed4b7dd05 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(