From a1b4ef4f97fa31a29d3534b0bd4ace1e36576709 Mon Sep 17 00:00:00 2001 From: Xu Zhimeng Date: Thu, 20 Feb 2025 17:10:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=8E=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=96=87=E4=BB=B6=E7=B3=BB=E7=BB=9F=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=97=B6=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E4=B8=AD=E5=8F=88=E6=9C=89=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=EF=BC=8C=E6=8A=A5=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Modals/LoadFromFileModal.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue b/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue index 0f6a3ab..a97e71a 100644 --- a/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue +++ b/src/views/spectrumAnalysis/components/Modals/LoadFromFileModal.vue @@ -445,8 +445,10 @@ export default { let result = await iter.next() while (!result.done) { const fileHandle = result.value - const file = await fileHandle.getFile() - fileList.push(file) + if (fileHandle.kind == 'file') { + const file = await fileHandle.getFile() + fileList.push(file) + } result = await iter.next() } @@ -504,8 +506,10 @@ export default { let result = await iter.next() while (!result.done) { const fileHandle = result.value - const file = await fileHandle.getFile() - fileList.push(file) + if (fileHandle.kind == 'file') { + const file = await fileHandle.getFile() + fileList.push(file) + } result = await iter.next() }