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

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

上级 dcfbb268
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册