From ab10e496feff0d7de81af939cd7ca1973e1ea220 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 14 一月 2022 18:46:02 +0800
Subject: [PATCH] 2022-01-14

---
 src/pc/components/login/normal-login/loginform.jsx |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/pc/components/login/normal-login/loginform.jsx b/src/pc/components/login/normal-login/loginform.jsx
index bfcf920..bb7c058 100644
--- a/src/pc/components/login/normal-login/loginform.jsx
+++ b/src/pc/components/login/normal-login/loginform.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Form, Input, Button, Checkbox } from 'antd'
+import { Form, Input, Button, Checkbox, notification } from 'antd'
 import { QrcodeOutlined, UserOutlined, LockOutlined } from '@ant-design/icons'
 
 import asyncElementComponent from '@/utils/asyncComponent'
@@ -12,7 +12,6 @@
 
 class LoginTabForm extends Component {
   static propTpyes = {
-    menuId: PropTypes.string,
     loginWays: PropTypes.array,
     wrap: PropTypes.array,
   }
@@ -80,10 +79,19 @@
   }
 
   changeMenu = () => {
-    const { wrap, menuId } = this.props
+    const { wrap } = this.props
+
+    if (!wrap.linkmenu) {
+      notification.warning({
+        top: 92,
+        message: '璇疯缃叧鑱旇彍鍗曪紒',
+        duration: 5
+      })
+      return
+    }
 
     MKEmitter.emit('changeEditMenu', {
-      MenuID: wrap.link === 'linkmenu' ? wrap.linkmenu : menuId,
+      MenuID: wrap.linkmenu,
       copyMenuId: '',
       MenuNo: '',
       MenuName: ''

--
Gitblit v1.8.0