优化useGetFile

master
LiuJiaNan 2026-02-03 09:33:52 +08:00
parent 209097a6ee
commit 13932c5aa9
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ function useGetFile(returnType = "object") {
} }
if (dataSource.length === 0) { if (dataSource.length === 0) {
setLoading(false);
resolve(dataSource); resolve(dataSource);
return; return;
} }