diff --git a/adapters/platforms/wechat/res/workers/cache-manager-worker.js b/adapters/platforms/wechat/res/workers/cache-manager-worker.js index 039246a6..05936748 100644 --- a/adapters/platforms/wechat/res/workers/cache-manager-worker.js +++ b/adapters/platforms/wechat/res/workers/cache-manager-worker.js @@ -209,7 +209,7 @@ var cacheManager_worker = { }, 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 (callback) callback(null); return;