From ad8b20531512295986d1d97ae9593d6d9f3e0941 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 25 十月 2024 14:59:42 +0800
Subject: [PATCH] 2024-10-25

---
 src/tabviews/custom/popview/index.jsx |    8 ++++++++
 src/tabviews/basetable/index.jsx      |    8 ++++++++
 src/tabviews/custom/index.jsx         |    8 ++++++++
 src/menu/debug/index.jsx              |   19 +++++++++++++++++++
 4 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/src/menu/debug/index.jsx b/src/menu/debug/index.jsx
index b66ef90..d9d6921 100644
--- a/src/menu/debug/index.jsx
+++ b/src/menu/debug/index.jsx
@@ -847,6 +847,25 @@
         })
       }
     }
+
+    if (formdata && formdata.findIndex(item => item.type === 'vercode') > -1) {
+      formdata.push({
+        type: 'text',
+        fieldlen: 50,
+        writein: false,
+        key: 'mk_timestamp'
+      }, {
+        type: 'text',
+        fieldlen: 50,
+        writein: false,
+        key: 'mk_send_type'
+      }, {
+        type: 'text',
+        fieldlen: 50,
+        writein: false,
+        key: 'mk_n_id'
+      })
+    }
     // 鑾峰彇瀛楁閿�煎
     formdata && formdata.forEach(form => {
       let _key = form.key.toLowerCase()
diff --git a/src/tabviews/basetable/index.jsx b/src/tabviews/basetable/index.jsx
index 9af687c..c1a63d8 100644
--- a/src/tabviews/basetable/index.jsx
+++ b/src/tabviews/basetable/index.jsx
@@ -554,12 +554,20 @@
         }
         if (/#position-inner/.test(script)) {
           cell.$innerScript = script
+
+          if (window.backend && window.GLOB.CacheData.has('sql_' + cell.uuid) && !/\$backend/.test(script)) {
+            window.GLOB.CacheData.delete('sql_' + cell.uuid)
+          }
         }
         if (/#position-outer/.test(script)) {
           cell.$outerScript = script
         }
         if (/#position-callback/.test(script)) {
           cell.$callbackScript = script
+
+          if (window.backend && window.GLOB.CacheData.has('sql_back_' + cell.uuid) && !/\$backend/.test(script)) {
+            window.GLOB.CacheData.delete('sql_back_' + cell.uuid)
+          }
         }
       }
     }
diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 8e29805..b11b3f9 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -1020,12 +1020,20 @@
         }
         if (/#position-inner/.test(script)) {
           cell.$innerScript = script
+
+          if (window.backend && window.GLOB.CacheData.has('sql_' + cell.uuid) && !/\$backend/.test(script)) {
+            window.GLOB.CacheData.delete('sql_' + cell.uuid)
+          }
         }
         if (/#position-outer/.test(script)) {
           cell.$outerScript = script
         }
         if (/#position-callback/.test(script)) {
           cell.$callbackScript = script
+
+          if (window.backend && window.GLOB.CacheData.has('sql_back_' + cell.uuid) && !/\$backend/.test(script)) {
+            window.GLOB.CacheData.delete('sql_back_' + cell.uuid)
+          }
         }
       }
     }
diff --git a/src/tabviews/custom/popview/index.jsx b/src/tabviews/custom/popview/index.jsx
index 71b9453..7e8fca6 100644
--- a/src/tabviews/custom/popview/index.jsx
+++ b/src/tabviews/custom/popview/index.jsx
@@ -712,12 +712,20 @@
         }
         if (/#position-inner/.test(script)) {
           cell.$innerScript = script
+
+          if (window.backend && window.GLOB.CacheData.has('sql_' + cell.uuid) && !/\$backend/.test(script)) {
+            window.GLOB.CacheData.delete('sql_' + cell.uuid)
+          }
         }
         if (/#position-outer/.test(script)) {
           cell.$outerScript = script
         }
         if (/#position-callback/.test(script)) {
           cell.$callbackScript = script
+
+          if (window.backend && window.GLOB.CacheData.has('sql_back_' + cell.uuid) && !/\$backend/.test(script)) {
+            window.GLOB.CacheData.delete('sql_back_' + cell.uuid)
+          }
         }
       }
     }

--
Gitblit v1.8.0