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 25c865341ebf6cf48d25801b651ec188802e33b5..e2fd3a30563e905e9462630949a9d5b8c402c006 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' }