king
2024-05-21 f0bf8c399c354c22227f8f1a76ed806098db59c0
src/views/login/loginform.jsx
@@ -14,7 +14,6 @@
class LoginTabForm extends Component {
  static propTpyes = {
    isDisabled: PropTypes.bool,
    changelang: PropTypes.func,
    handleSubmit: PropTypes.func,
    dict: PropTypes.object,
    auth: PropTypes.bool,
@@ -94,8 +93,12 @@
    })
  }
  changelang = (item) => {
    this.props.changelang(item)
  changelang = (val) => {
    const _href = window.location.href.split('#')[0]
    localStorage.setItem(_href + 'lang', val)
    sessionStorage.setItem('lang', val)
    window.location.reload()
  }
  handleSubmit = e => {
@@ -354,7 +357,7 @@
              initialValue: this.props.lang,
            })(
              <Select
                onChange={(value) => {this.props.changelang(value)}}
                onChange={(value) => {this.changelang(value)}}
                getPopupContainer={() => document.getElementById('login-form')}
              >
                {langList.map((item, index) => {