From 10505e3f2b515a9e0c94496b2bc8340316863d64 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 11 一月 2022 09:39:34 +0800
Subject: [PATCH] 2022-01-11

---
 src/menu/components/card/cardcomponent/index.jsx |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/card/cardcomponent/index.jsx b/src/menu/components/card/cardcomponent/index.jsx
index 0fba068..6dbb4eb 100644
--- a/src/menu/components/card/cardcomponent/index.jsx
+++ b/src/menu/components/card/cardcomponent/index.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Popover, Switch, Col, Modal, Button } from 'antd'
+import { Popover, Switch, Col, Modal, Button, notification } from 'antd'
 import { PlusOutlined, PlusSquareOutlined, EditOutlined, ArrowLeftOutlined, ArrowRightOutlined, SwapOutlined, ToolOutlined, DeleteOutlined, FontColorsOutlined } from '@ant-design/icons'
 
 import asyncComponent from '@/utils/asyncComponent'
@@ -272,6 +272,14 @@
     const { card, appType } = this.state
 
     if (card.setting.click === 'menu' && card.setting.menu) {
+      if (['IM'].includes(card.setting.menu)) {
+        notification.warning({
+          top: 92,
+          message: '绯荤粺椤甸潰涓嶅彲缂栬緫锛�',
+          duration: 5
+        })
+        return
+      }
       MKEmitter.emit('changeEditMenu', {MenuID: card.setting.menu})
     } else if (card.setting.click === 'menus' && card.menus && card.menus.length > 0 && cards.subtype === 'datacard' && card.$cardType !== 'extendCard' && (appType === 'mob' || appType === 'pc')) {
       this.setState({visible: true})

--
Gitblit v1.8.0