From 783ab4e467c95e26f7f031151507bd7ad8333a63 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 08 九月 2023 17:34:47 +0800
Subject: [PATCH] 2023-09-08
---
src/api/cacheutils.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/api/cacheutils.js b/src/api/cacheutils.js
index 9556233..3184290 100644
--- a/src/api/cacheutils.js
+++ b/src/api/cacheutils.js
@@ -7,7 +7,7 @@
*/
static openIndexDB (db) {
try {
- let request = window.indexedDB.open(db, 2)
+ let request = window.indexedDB.open(db, 3)
request.onerror = () => {
console.warn('IndexedDB 鍒濆鍖栧け璐ワ紒')
}
@@ -27,7 +27,7 @@
if (!window.GLOB.IndexDB.objectStoreNames.contains('caches')) {
window.GLOB.IndexDB.createObjectStore('caches', { keyPath: 'menuid' })
}
- if (window.GLOB.systemType === '' && !window.GLOB.IndexDB.objectStoreNames.contains('funcs')) {
+ if (!window.GLOB.IndexDB.objectStoreNames.contains('funcs')) {
window.GLOB.IndexDB.createObjectStore('funcs', { keyPath: 'id' })
}
}
@@ -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