From f3d4db769ba9b51b799d981511a710fd443d0e08 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 21 四月 2025 12:18:03 +0800 Subject: [PATCH] Merge branch 'master' into positec --- 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