提交 34ef7247 编写于 作者: 杜庆泉's avatar 杜庆泉

get-fileSystemManager 去掉了报警的示例

上级 3c32b6fe
......@@ -76,7 +76,7 @@
methods: {
statFileInfoTest: function (e : any) {
statFileInfoTest: function (_ : any) {
let fileManager = uni.getFileSystemManager()
fileManager.stat({
......@@ -107,7 +107,7 @@
} as StatOptions)
},
getFileInfoTest: function (e : any) {
getFileInfoTest: function () {
let fileManager = uni.getFileSystemManager()
fileManager.getFileInfo({
......@@ -139,7 +139,7 @@
},
copyFileTest: function (e : any) {
copyFileTest: function () {
let fileManager = uni.getFileSystemManager()
......@@ -169,7 +169,7 @@
} as CopyFileOptions)
},
renameFileTest: function (e : any) {
renameFileTest: function () {
let fileManager = uni.getFileSystemManager()
......@@ -199,7 +199,7 @@
} as RenameOptions)
},
readDirTest: function (e : any) {
readDirTest: function () {
let fileManager = uni.getFileSystemManager()
fileManager.readdir({
dirPath: `${this.basePath}${this.readDir}`,
......@@ -231,7 +231,7 @@
},
writeFileTest: function (e : any) {
writeFileTest: function (_ : any) {
let fileManager = uni.getFileSystemManager()
fileManager.writeFile({
......@@ -263,7 +263,7 @@
},
readFileTest: function (e : any) {
readFileTest: function () {
let fileManager = uni.getFileSystemManager()
......@@ -294,7 +294,7 @@
} as ReadFileOptions)
},
rmdirTest: function (e : any) {
rmdirTest: function () {
let fileManager = uni.getFileSystemManager()
fileManager.rmdir({
dirPath: `${this.basePath}${this.rmDirFile}`,
......@@ -322,7 +322,7 @@
} as RmDirOptions)
},
mkdirTest: function (e : any) {
mkdirTest: function () {
// 准备测试数据
let fileManager = uni.getFileSystemManager()
......@@ -353,7 +353,7 @@
} as MkDirOptions)
},
accessFileTest: function (e : any) {
accessFileTest: function () {
this.accessFileRet = ''
let fileManager = uni.getFileSystemManager()
fileManager.access({
......@@ -382,7 +382,7 @@
} as AccessOptions)
},
unlinkTest: function (e : any) {
unlinkTest: function () {
let fileManager = uni.getFileSystemManager()
......@@ -410,7 +410,7 @@
}
} as UnLinkOptions)
},
unlinkAllFileTest: function (e : any) {
unlinkAllFileTest: function () {
let fileManager = uni.getFileSystemManager()
fileManager.readdir({
dirPath: `${this.basePath}${this.rmDirFile}`,
......@@ -460,7 +460,7 @@
}
} as ReadDirOptions)
},
copyStaticToFilesTest: function (e : any) {
copyStaticToFilesTest: function () {
let fileManager = uni.getFileSystemManager()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册