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 4d58b87392e5a358e6a0401c45c6aa24acf9f1c0..a09ce29d1dc6f5534bff76ffcdc5c5078e9f9ed5 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 @@