From d5edf87014863eceaa44f28809ae4b54a39b9a8e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 23 五月 2025 10:54:05 +0800 Subject: [PATCH] Merge branch 'develop' --- src/api/cacheutils.js | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/api/cacheutils.js b/src/api/cacheutils.js index bd14fa5..b20d3f6 100644 --- a/src/api/cacheutils.js +++ b/src/api/cacheutils.js @@ -27,9 +27,9 @@ if (!window.GLOB.IndexDB.objectStoreNames.contains('caches')) { window.GLOB.IndexDB.createObjectStore('caches', { keyPath: 'menuid' }) } - if (!window.GLOB.IndexDB.objectStoreNames.contains('funcs')) { - window.GLOB.IndexDB.createObjectStore('funcs', { keyPath: 'id' }) - } + // if (!window.GLOB.IndexDB.objectStoreNames.contains('funcs')) { + // window.GLOB.IndexDB.createObjectStore('funcs', { keyPath: 'id' }) + // } } } catch (e) { console.warn('IndexedDB 鍒濆鍖栧け璐ワ紒') @@ -204,7 +204,7 @@ /** * @description 鑾峰彇IndexedDB涓殑閰嶇疆淇℃伅 */ - static getIndexDBCacheConfig (MenuID, limit) { + static getIndexDBCacheConfig (MenuID) { if (!window.GLOB.IndexDB) return Promise.resolve() return new Promise((resolve, reject) => { @@ -215,15 +215,7 @@ } request.onsuccess = () => { - if (limit && request.result) { - if (request.result.CreateDate > limit) { - resolve(request.result) - } else { - resolve() - } - } else { - resolve(request.result) - } + resolve(request.result) } }) } -- Gitblit v1.8.0