mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
allow path ends with slash in loadResAll
This commit is contained in:
@@ -75,6 +75,9 @@ cc.js.mixin(AssetTable.prototype, {
|
||||
|
||||
getUuidArray: function (path, type) {
|
||||
path = cc.url.normalize(path);
|
||||
if (path[path.length - 1] === '/') {
|
||||
path = path.slice(0, -1);
|
||||
}
|
||||
var path2uuid = this._pathToUuid;
|
||||
var uuids = [];
|
||||
var p, i;
|
||||
|
||||
Reference in New Issue
Block a user