From f74d06cff0e27653c2c5ff33cf3824fa3cfb4464 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 17 三月 2023 15:21:47 +0800
Subject: [PATCH] 2023-03-17

---
 src/utils/utils.js |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/utils/utils.js b/src/utils/utils.js
index 4431f93..553ca2f 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -2253,24 +2253,24 @@
  */
 export function setGLOBFuncs () {
   window.GLOB.funcs = []
-  if (!window.GLOB.WebSql && !window.GLOB.IndexDB) {
+  if (!window.GLOB.IndexDB) {
     return
   }
 
-  if (window.GLOB.WebSql) {
-    window.GLOB.WebSql.transaction(tx => {
-      tx.executeSql("SELECT * FROM FUNCS", [], (tx, results) => {
-        let rows = results.rows
-        if (!rows || rows.length === 0) return
-        for (let i = 0; i < rows.length; i++) {
-          window.GLOB.funcs.push({
-            func_code: rows[i].func_code,
-            key_sql: window.decodeURIComponent(window.atob(rows[i].key_sql))
-          })
-        }
-      })
-    })
-  } else {
+  // if (window.GLOB.WebSql) {
+  //   window.GLOB.WebSql.transaction(tx => {
+  //     tx.executeSql("SELECT * FROM FUNCS", [], (tx, results) => {
+  //       let rows = results.rows
+  //       if (!rows || rows.length === 0) return
+  //       for (let i = 0; i < rows.length; i++) {
+  //         window.GLOB.funcs.push({
+  //           func_code: rows[i].func_code,
+  //           key_sql: window.decodeURIComponent(window.atob(rows[i].key_sql))
+  //         })
+  //       }
+  //     })
+  //   })
+  // } else {
     let objectStore = window.GLOB.IndexDB.transaction('funcs').objectStore('funcs')
 
     objectStore.openCursor().onsuccess = (event) => {
@@ -2284,7 +2284,7 @@
         cursor.continue()
       }
     }
-  }
+  // }
 }
 
 /**

--
Gitblit v1.8.0