[adapters] 修复资源未缓存成功的问题

This commit is contained in:
SmallMain 2024-10-28 17:22:56 +08:00
parent 6114dba7aa
commit 6c720d359d
No known key found for this signature in database

View File

@ -209,7 +209,7 @@ var cacheManager_worker = {
}, },
cacheFile(callback, id, srcUrl, cacheEnabled, cacheBundleRoot, isCopy) { cacheFile(callback, id, srcUrl, cacheEnabled, cacheBundleRoot, isCopy) {
cacheEnabled = cacheEnabled !== undefined ? cacheEnabled : this.cacheEnabled; cacheEnabled = cacheEnabled != null ? cacheEnabled : this.cacheEnabled;
if (!cacheEnabled || this.cacheQueue[id] || this.cachedFiles[id]) { if (!cacheEnabled || this.cacheQueue[id] || this.cachedFiles[id]) {
if (callback) callback(null); if (callback) callback(null);
return; return;