mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
@@ -369,7 +369,12 @@ JS.mixin(cc.loader, {
|
||||
* @returns {*}
|
||||
*/
|
||||
getRes: function (url) {
|
||||
return this._items.getContent(url);
|
||||
var item = this._items.getContent(url);
|
||||
if (!item) {
|
||||
var uuid = this._getResUuid(url);
|
||||
item = this._items.getContent(uuid);
|
||||
}
|
||||
return item;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user