From 4253ccb7a5ec8f27e6bfdf32fc17872deb1d97c4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 16 四月 2025 16:37:27 +0800 Subject: [PATCH] Merge branch 'positec' into dms --- src/api/cacheutils.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/cacheutils.js b/src/api/cacheutils.js index 265071c..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 鍒濆鍖栧け璐ワ紒') @@ -234,7 +234,7 @@ request.onsuccess = (e) => { let cursor = e.target.result if (cursor) { - if (cursor.value.CreateDate < date) { + if (cursor.value.CreateDate < date || cursor.value.CreateDate.length === 10) { cursor.delete() } cursor.continue() -- Gitblit v1.8.0