king
2023-05-15 4587b07918b19e9724439d773b0ba28f388057df
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' })
        }
      }