From 8f394e7ef20cc0abba3f47c23a63b069e9dd0e45 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 19 十月 2022 15:09:30 +0800
Subject: [PATCH] 2022-10-19

---
 src/mob/components/tabs/tabcomponents/index.jsx |   22 +---------------------
 1 files changed, 1 insertions(+), 21 deletions(-)

diff --git a/src/mob/components/tabs/tabcomponents/index.jsx b/src/mob/components/tabs/tabcomponents/index.jsx
index 8cd28e1..474cd2c 100644
--- a/src/mob/components/tabs/tabcomponents/index.jsx
+++ b/src/mob/components/tabs/tabcomponents/index.jsx
@@ -2,7 +2,7 @@
 import { useDrop } from 'react-dnd'
 import { is, fromJS } from 'immutable'
 import update from 'immutability-helper'
-import { Empty, notification, Modal } from 'antd'
+import { Empty, Modal } from 'antd'
 
 import Utils from '@/utils/utils.js'
 import MKEmitter from '@/utils/events.js'
@@ -76,26 +76,8 @@
       item.added = true
 
       if (item.component === 'search') { // 绉诲姩绔爣绛鹃〉涓笉鍙坊鍔犳悳绱�
-        // if (cards.filter(card => card.type === 'search').length > 0) {
-        //   notification.warning({
-        //     top: 92,
-        //     message: '鎼滅储鏉′欢涓嶅彲閲嶅娣诲姞锛�',
-        //     duration: 5
-        //   })
-        //   return
-        // }
         item.added = false
         return
-      } else if (item.component === 'tabs') {
-        let floor = MenuUtils.getFloor(config.parentId)
-        if (floor >= 3 ) {
-          notification.warning({
-            top: 92,
-            message: '鏍囩椤垫渶澶氫负涓夐噸缁撴瀯锛�',
-            duration: 5
-          })
-          return
-        }
       }
 
       let name = ''
@@ -131,8 +113,6 @@
       
       let newcard = {
         uuid: Utils.getuuid(),
-        tabId: config.uuid,
-        parentId: config.parentId,
         type: item.component,
         subtype: item.subtype,
         config: item.config,

--
Gitblit v1.8.0