1***@163.com
1***@163.com
  • 发布:2025-04-18 12:14
  • 更新:2025-04-22 12:48
  • 阅读:2245

uniapp X的app-ios平台uni.getFileSystemManager返回空

分类:uni-app x

需求是在ios希望能够读取本地相册照片转为base64上传服务器,但是打印发现fs为空。

const fs = uni.getFileSystemManager(); // 为空

const imgBuffer = uni.getFileSystemManager().readFileSync(onloadFiles[0].path as string, null); // 无readFileSync方法

2025-04-18 12:14 负责人:无 分享
已邀请:
DCloud_iOS_ZFL

DCloud_iOS_ZFL

iOS 是4.61版本才上线的,现在HBuilder-Alpha才支持,release版本暂时不支持,您的开发环境是啥?

要回复问题请先登录注册