From e271c80099d8dc5e5b7abbd173b4b8acca0b034b Mon Sep 17 00:00:00 2001 From: "xutongyin@dcloud.io" Date: Fri, 22 Mar 2024 16:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9fileManager=20=20readDir=20js?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E6=8A=A5=E9=94=99=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 --- .../get-file-system-manager.uvue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.uvue b/pages/API/get-file-system-manager/get-file-system-manager.uvue index e2fd3a30..0cc90a77 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.uvue +++ b/pages/API/get-file-system-manager/get-file-system-manager.uvue @@ -215,11 +215,10 @@ complete: (res : any) => { console.log("complete", res) this.done = true - if (res instanceof ReadDirSuccessResult) { - this.fileListComplete = res.files - } if (res instanceof UniError) { this.lastCompleteError = res + } else { + this.fileListComplete = (res as ReadDirSuccessResult).files } } } as ReadDirOptions) @@ -440,11 +439,10 @@ complete : (res : any) => { console.log("complete readdir", res) this.done = true - if (res instanceof ReadDirSuccessResult) { - this.fileListComplete = res.files - } if (res instanceof UniError) { this.lastCompleteError = res + } else { + this.fileListComplete = (res as ReadDirSuccessResult).files } } } as ReadDirOptions) -- GitLab