mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Avoid iOS permission issue
This commit is contained in:
@@ -26,7 +26,7 @@ else {
|
||||
var filePath = url;
|
||||
// var localPath = wx.env.USER_DATA_PATH + '/' + filePath;
|
||||
// Read from package
|
||||
fs.accessSync(filePath);
|
||||
// fs.accessSync(filePath);
|
||||
fs.readFile({
|
||||
filePath: filePath,
|
||||
encoding: 'utf8',
|
||||
|
||||
Reference in New Issue
Block a user