From aeb77f2e5b62676a842efd218efe8b525d350895 Mon Sep 17 00:00:00 2001 From: WOSHIMAHAIFENG Date: Wed, 17 Apr 2024 15:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0file=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-file-system-manager.uvue | 73 ++++++++++++------- 1 file changed, 48 insertions(+), 25 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 4d58b873..a09ce29d 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 @@ -4,18 +4,24 @@ {{ log }} - + - - + + - + - - + + @@ -23,14 +29,18 @@ - - + + - + - + - - - - - + + + + + - + - + - - + + @@ -489,7 +508,9 @@ }); }, fail: (res : UniError) => { - this.log += 'unlinkAllFileTest fail:' + JSON.stringify(res) + '\n\n' + if (this.logAble) { + this.log += 'unlinkAllFileTest fail:' + JSON.stringify(res) + '\n\n' + } console.log('fail to readdir', res) this.lastFailError = res }, @@ -753,7 +774,7 @@ //todo 后面打开 // this.saveFileRet=res } catch (e) { - console.log('saveFileSyncTest:'+e) + console.log('saveFileSyncTest:' + e) this.done = true } }, @@ -998,7 +1019,9 @@ fileManager.closeSync({ fd: res.fd } as CloseSyncOptions) - this.log += 'closeSyncTest success:' + '\n\n' + if (this.logAble) { + this.log += 'closeSyncTest success:' + '\n\n' + } this.done = true this.closeFileRet = "close:ok" } catch (e) { @@ -1279,7 +1302,7 @@ -- GitLab