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 e2fd3a30563e905e9462630949a9d5b8c402c006..0cc90a7772d26d6e04139e53ca7bd5681d332b83 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)