king
2021-12-10 94cd90e22facb0e75a6e255ce125aa4ea6aca260
src/pc/components/login/normal-login/index.jsx
@@ -7,8 +7,6 @@
import asyncComponent from '@/utils/asyncComponent'
import MKEmitter from '@/utils/events.js'
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
import { resetStyle } from '@/utils/utils-custom.js'
import getWrapForm from './options'
import './index.scss'
@@ -24,7 +22,6 @@
  }
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    card: null,
    back: false
  }
@@ -161,7 +158,7 @@
  }
  render() {
    const { card, dict } = this.state
    const { card } = this.state
    let style = resetStyle(card.style)
    if (card.wrap.maxWidth) {
      style.maxWidth = card.wrap.maxWidth
@@ -187,7 +184,7 @@
        } trigger="hover">
          <Icon type="tool" />
        </Popover>
        <LoginForm loginWays={card.loginWays} wrap={card.wrap} menuId={card.uuid} dict={dict} />
        <LoginForm loginWays={card.loginWays} wrap={card.wrap} menuId={card.uuid} />
      </div>
    )
  }