From ccac5187bd5f7e0a868a69d00b9672bec155bea6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 24 十二月 2023 23:17:50 +0800
Subject: [PATCH] 2023-12-24

---
 src/views/mobdesign/index.jsx |   39 ++-------------------------------------
 1 files changed, 2 insertions(+), 37 deletions(-)

diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx
index b3dca30..4c6417c 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -1858,49 +1858,14 @@
   insert = (item) => {
     let config = fromJS(this.state.config).toJS()
 
-    if (item.type === 'search') {
-      if (config.components.filter(card => card.type === 'topbar' && card.wrap.type !== 'navbar').length > 0) {
-        notification.warning({
-          top: 92,
-          message: '瀵艰埅鏍忎娇鐢ㄤ簡鎼滅储锛屼笉鍙坊鍔犳悳绱㈢粍浠讹紒',
-          duration: 5
-        })
-        return
-      }
-      if (config.components.filter(card => card.type === 'search').length > 0) {
-        notification.warning({
-          top: 92,
-          message: '鎼滅储鏉′欢涓嶅彲閲嶅娣诲姞锛�',
-          duration: 5
-        })
-        return
-      }
-    }
-    
-    if (item.type === 'topbar') {
-      if (config.components.findIndex(m => m.type === 'topbar') > -1) {
-        notification.warning({
-          top: 92,
-          message: '瀵艰埅鏍忎笉鍙噸澶嶆坊鍔狅紒',
-          duration: 5
-        })
-        return
-      }
-      if (!config.style.paddingTop) {
-        config.style.paddingTop = '50px'
-      }
+    if (item.type === 'topbar' && !config.style.paddingTop) {
+      config.style.paddingTop = '50px'
     }
 
     config.components.push(item)
 
     this.setState({config})
     window.GLOB.customMenu = config
-
-    notification.success({
-      top: 92,
-      message: '绮樿创鎴愬姛锛�',
-      duration: 2
-    })
   }
 
   setHomeView = () => {

--
Gitblit v1.8.0