提交 e271c800 编写于 作者: xuty73419315's avatar xuty73419315

修改fileManager readDir js环境下报错的问题

上级 dcfbb268
...@@ -215,11 +215,10 @@ ...@@ -215,11 +215,10 @@
complete: (res : any) => { complete: (res : any) => {
console.log("complete", res) console.log("complete", res)
this.done = true this.done = true
if (res instanceof ReadDirSuccessResult) {
this.fileListComplete = res.files
}
if (res instanceof UniError) { if (res instanceof UniError) {
this.lastCompleteError = res this.lastCompleteError = res
} else {
this.fileListComplete = (res as ReadDirSuccessResult).files
} }
} }
} as ReadDirOptions) } as ReadDirOptions)
...@@ -440,11 +439,10 @@ ...@@ -440,11 +439,10 @@
complete : (res : any) => { complete : (res : any) => {
console.log("complete readdir", res) console.log("complete readdir", res)
this.done = true this.done = true
if (res instanceof ReadDirSuccessResult) {
this.fileListComplete = res.files
}
if (res instanceof UniError) { if (res instanceof UniError) {
this.lastCompleteError = res this.lastCompleteError = res
} else {
this.fileListComplete = (res as ReadDirSuccessResult).files
} }
} }
} as ReadDirOptions) } as ReadDirOptions)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册