mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Loader only allow access to completed item
This commit is contained in:
@@ -438,7 +438,7 @@ JS.mixin(CCLoader.prototype, {
|
||||
var uuid = this._getResUuid(url);
|
||||
item = this._cache[uuid];
|
||||
}
|
||||
return item ? item.content : null;
|
||||
return (item && item.complete) ? item.content : null;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user