From 34ef7247fbdd8be2530b6bfe9dfcf4c38760e3dd Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 14 Dec 2023 17:50:09 +0800 Subject: [PATCH] =?UTF-8?q?get-fileSystemManager=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E4=BA=86=E6=8A=A5=E8=AD=A6=E7=9A=84=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-file-system-manager.uvue | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) 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 755e061a..d53702c8 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 @@ -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() -- GitLab