From cd9b8908311094fbcd6c359ed8bf80ba4589375a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 20 十月 2023 22:22:49 +0800
Subject: [PATCH] 2023-10-20

---
 src/menu/datasource/index.jsx |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/menu/datasource/index.jsx b/src/menu/datasource/index.jsx
index 68edece..31909af 100644
--- a/src/menu/datasource/index.jsx
+++ b/src/menu/datasource/index.jsx
@@ -32,11 +32,6 @@
     const { config } = this.props
     const { appType } = this.state
 
-    if (config.type === 'interface') { // 鍏叡鏁版嵁婧愪笉浣跨敤鎼滅储
-      this.setState({visible: true})
-      return
-    }
-
     let search = []
     let menu = fromJS(window.GLOB.customMenu).toJS()
 
@@ -95,6 +90,11 @@
           })
         })
       }
+    } else if (config.type === 'interface') {
+      menu.components.forEach(item => {
+        if (item.type !== 'search') return
+        search = item.search
+      })
     } else {
       let filterComponent = (box, mainSearch) => {
         box.components.forEach(item => {

--
Gitblit v1.8.0