From 9b905b749861865e57aa2f20d09ac0cbedb05df1 Mon Sep 17 00:00:00 2001 From: mozzie Date: Wed, 11 Sep 2024 13:05:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=89=8D=E7=BD=AE?= =?UTF-8?q?=E7=9A=84dicom=E6=96=87=E4=BB=B6=E5=88=A0=E9=80=89=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=A4=A7=E9=87=8F=E6=97=A0=E5=85=B3=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=90=9E=E4=BA=8B=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/electron/ipcEvent/dicom/util.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/desktop/electron/ipcEvent/dicom/util.ts b/apps/desktop/electron/ipcEvent/dicom/util.ts index e4194d8..e088b73 100644 --- a/apps/desktop/electron/ipcEvent/dicom/util.ts +++ b/apps/desktop/electron/ipcEvent/dicom/util.ts @@ -44,8 +44,7 @@ export const filterDicoms = async ( const filePath = path.join(dir, file.name); if (file.isDirectory()) { await filterDicoms(filePath, fileList); // 递归调用以遍历子目录 - } else { - // if (await isDICOMFile(filePath)) + } else if (await isDICOMFile(filePath)) { fileList.push(filePath); } })