king
2022-01-14 ab10e496feff0d7de81af939cd7ca1973e1ea220
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: ''