From bb0764e8067b2394a795c142855a78ea4bf74789 Mon Sep 17 00:00:00 2001 From: "xutongyin@dcloud.io" Date: Thu, 21 Mar 2024 18:04:11 +0800 Subject: [PATCH] =?UTF-8?q?file-system-manager=20=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E7=BB=9F=E4=B8=80android=E3=80=81iOS=20static=20=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E7=9A=84=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../API/get-file-system-manager/get-file-system-manager.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 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 25c86534..e2fd3a30 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 @@ -453,9 +453,9 @@ const fileManager = uni.getFileSystemManager() fileManager.copyFile({ - srcPath: UTSAndroid.getResourcePath("static/list-mock/mock.json"), + srcPath: "/static/list-mock/mock.json", destPath: `${this.copyToBasePath}/a/mock.json`, - success: (res : FileManagerSuccessResult) => { + success: (res : FileManagerSuccessResult) => { if (this.logAble) { this.log += 'copyFileTest success:' + JSON.stringify(res) + '\n\n' } -- GitLab