From 567cea64c520654876e8c1a7f4ca2baf2c1c773f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 25 十一月 2022 11:16:39 +0800
Subject: [PATCH] 2022-11-25

---
 src/tabviews/zshare/topSearch/index.jsx |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/tabviews/zshare/topSearch/index.jsx b/src/tabviews/zshare/topSearch/index.jsx
index 86f124f..47a2ae4 100644
--- a/src/tabviews/zshare/topSearch/index.jsx
+++ b/src/tabviews/zshare/topSearch/index.jsx
@@ -173,6 +173,10 @@
         if (item.resourceType === '1' && item.dataSource) {
           let _option = Utils.getSelectQueryOptions(item)
 
+          if (window.GLOB.debugger === true || (window.debugger === true && options.sysType !== 'cloud')) {
+            console.info(_option.sql)
+          }
+
           // 娴嬭瘯绯荤粺鍗曚釜璇锋眰
           if (!window.GLOB.mkHS && options.sysType === 'local' && !window.GLOB.systemType) {
             deForms.push({
@@ -230,7 +234,7 @@
     }, () => {
       if (!window.GLOB.mkHS && options.sysType === 'local' && window.GLOB.systemType !== 'production') {
         this.improveSimpleSearch(deForms)
-      } else {
+      } else if (mainItems.length > 0 || localItems.length > 0) {
         this.improveSearch(mainItems, localItems)
       }
     })
@@ -240,11 +244,6 @@
   improveSearch = (mainItems, localItems) => {
     const { BID } = this.props
     let deffers = []
-
-    if (!window.GLOB.mkHS && options.sysType !== 'local') {
-      localItems = [...localItems, ...mainItems]
-      mainItems = []
-    }
 
     // 鏈湴璇锋眰
     let param = {

--
Gitblit v1.8.0