king
2022-02-08 f393af9623c26ae177a3f69b8676afc4e23bff8d
src/mob/mobshell/index.jsx
@@ -79,6 +79,14 @@
      let style = null
      if (item.component === 'search') { // 搜索组件不可重复添加
        if (cards.filter(card => card.type === 'topbar' && card.wrap.type !== 'navbar').length > 0) {
          notification.warning({
            top: 92,
            message: '导航栏使用了搜索,不可添加搜索组件!',
            duration: 5
          })
          return
        }
        if (cards.filter(card => card.type === 'search').length > 0) {
          notification.warning({
            top: 92,