提交 bb0764e8 编写于 作者: xuty73419315's avatar xuty73419315

file-system-manager 示例统一android、iOS static 路径的写法

上级 58ecb8ad
...@@ -453,7 +453,7 @@ ...@@ -453,7 +453,7 @@
const fileManager = uni.getFileSystemManager() const fileManager = uni.getFileSystemManager()
fileManager.copyFile({ fileManager.copyFile({
srcPath: UTSAndroid.getResourcePath("static/list-mock/mock.json"), srcPath: "/static/list-mock/mock.json",
destPath: `${this.copyToBasePath}/a/mock.json`, destPath: `${this.copyToBasePath}/a/mock.json`,
success: (res : FileManagerSuccessResult) => { success: (res : FileManagerSuccessResult) => {
if (this.logAble) { if (this.logAble) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册