Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
0d582f40
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6006
Star
91
Fork
164
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
0d582f40
编写于
12月 11, 2023
作者:
杜庆泉
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
get-file-system-manager 示例修改any为明确的类型
上级
ee7e62aa
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
pages/API/get-file-system-manager/get-file-system-manager.uvue
.../API/get-file-system-manager/get-file-system-manager.uvue
+13
-13
未找到文件。
pages/API/get-file-system-manager/get-file-system-manager.uvue
浏览文件 @
0d582f40
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
this.statsRet = res.stats
this.statsRet = res.stats
console.log('this.statsRet', this.statsRet)
console.log('this.statsRet', this.statsRet)
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'statFileInfoTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'statFileInfoTest fail:' + JSON.stringify(res) + '\n\n'
console.log('statFileInfoTest fail', res)
console.log('statFileInfoTest fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
this.getFileInfoSize = res.size
this.getFileInfoSize = res.size
this.getFileInfoDigest = res.digest
this.getFileInfoDigest = res.digest
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'getFileInfoTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'getFileInfoTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
this.log += 'copyFileTest success:' + JSON.stringify(res) + '\n\n'
this.log += 'copyFileTest success:' + JSON.stringify(res) + '\n\n'
console.log('success', res)
console.log('success', res)
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'copyFileTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'copyFileTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
this.log += 'renameFileTest success:' + JSON.stringify(res) + '\n\n'
this.log += 'renameFileTest success:' + JSON.stringify(res) + '\n\n'
console.log('success', res)
console.log('success', res)
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'renameFileTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'renameFileTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -190,7 +190,7 @@
...
@@ -190,7 +190,7 @@
console.log("success", res)
console.log("success", res)
this.fileListSuccess = res.files
this.fileListSuccess = res.files
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'readDirTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'readDirTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -216,16 +216,16 @@
...
@@ -216,16 +216,16 @@
filePath: `${this.basePath}${this.writeFile}`,
filePath: `${this.basePath}${this.writeFile}`,
data: this.writeFileContent,
data: this.writeFileContent,
encoding: this.writeFileEncoding,
encoding: this.writeFileEncoding,
success: function (res) {
success: function (res
: FileManagerSuccessResult
) {
this.log += 'writeFileTest success:' + JSON.stringify(res) + '\n\n'
this.log += 'writeFileTest success:' + JSON.stringify(res) + '\n\n'
console.log('success', res)
console.log('success', res)
},
},
fail: function (res) {
fail: function (res
: UniError
) {
this.log += 'writeFileTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'writeFileTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail')
console.log('fail')
this.lastFailError = res
this.lastFailError = res
},
},
complete: function (res) {
complete: function (res
: any
) {
this.done = true
this.done = true
console.log("complete")
console.log("complete")
if (res instanceof UniError) {
if (res instanceof UniError) {
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
console.log('success', res)
console.log('success', res)
this.readFileRet = res.data
this.readFileRet = res.data
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'readFileTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'readFileTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
this.log += 'rmdirTest success:' + JSON.stringify(res) + '\n\n'
this.log += 'rmdirTest success:' + JSON.stringify(res) + '\n\n'
console.log('success', res)
console.log('success', res)
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'rmdirTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'rmdirTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -300,7 +300,7 @@
...
@@ -300,7 +300,7 @@
this.log += 'mkdirTest success:' + JSON.stringify(res) + '\n\n'
this.log += 'mkdirTest success:' + JSON.stringify(res) + '\n\n'
console.log('success', res)
console.log('success', res)
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'mkdirTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'mkdirTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -394,7 +394,7 @@
...
@@ -394,7 +394,7 @@
} as UnLinkOptions)
} as UnLinkOptions)
});
});
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'unlinkAllFileTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'unlinkAllFileTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail to readdir', res)
console.log('fail to readdir', res)
this.lastFailError = res
this.lastFailError = res
...
@@ -422,7 +422,7 @@
...
@@ -422,7 +422,7 @@
this.log += 'copyFileTest success:' + JSON.stringify(res) + '\n\n'
this.log += 'copyFileTest success:' + JSON.stringify(res) + '\n\n'
console.log('success', res)
console.log('success', res)
},
},
fail: function (res :
any
) {
fail: function (res :
UniError
) {
this.log += 'copyFileTest fail:' + JSON.stringify(res) + '\n\n'
this.log += 'copyFileTest fail:' + JSON.stringify(res) + '\n\n'
console.log('fail', res)
console.log('fail', res)
this.lastFailError = res
this.lastFailError = res
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录