king
2021-07-28 6cc278a2ffb418d1172ed84cf3b0b554b090cc8b
2021-07-28
4个文件已修改
24 ■■■■■ 已修改文件
src/locales/en-US/login.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/zh-CN/login.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.jsx 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/loginform.jsx 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/en-US/login.js
@@ -1,7 +1,7 @@
export default {
  'login.auth.tip': 'The system is not authorized, please contact the administrator.',
  'login.auth.ok': 'OK',
  'login.auth.cancel': 'Cancel',
  'login.ok': 'OK',
  'login.cancel': 'Cancel',
  'login.username': 'Username',
  'login.username.empty': 'Please input your username!',
  'login.phone': 'Mobile phone no',
src/locales/zh-CN/login.js
@@ -1,7 +1,7 @@
export default {
  'login.auth.tip': '系统未授权,请联系管理员。',
  'login.auth.ok': '确定',
  'login.auth.cancel': '取消',
  'login.ok': '确定',
  'login.cancel': '取消',
  'login.username': '用户名',
  'login.username.empty': '请输入用户名!',
  'login.phone': '手机号',
src/views/login/index.jsx
@@ -29,6 +29,7 @@
    dict: iszhCN ? zhCN : enUS,
    isDisabled: false,
    auth: false,
    authError: '',
    loginlogo: window.GLOB.loginlogo || '',
    bgImage: window.GLOB.bgImage || '',
    platName: window.GLOB.platName || '',
@@ -273,7 +274,8 @@
        } else if (res.ErrCode === 'N') {
          localStorage.removeItem(_authUrl)
          this.setState({
            auth: false
            auth: false,
            authError: res.message
          })
        }
      })
@@ -539,6 +541,7 @@
            platName={this.state.platName}
            dict={this.state.dict}
            auth={this.state.auth}
            authError={this.state.authError}
            touristLogin={touristLogin}
            loginWays={loginWays}
            lang={this.state.selectedlang}
@@ -559,8 +562,8 @@
        {/* 编辑状态登录 */}
        <Modal
          title={this.state.dict['login.sync.cloud']}
          okText={this.state.dict['login.auth.ok']}
          cancelText={this.state.dict['login.auth.cancel']}
          okText={this.state.dict['login.ok']}
          cancelText={this.state.dict['login.cancel']}
          visible={this.state.syncApp}
          onOk={this.syncSubmit}
          maskClosable={false}
src/views/login/loginform.jsx
@@ -19,6 +19,7 @@
    handleSubmit: PropTypes.func,
    dict: PropTypes.object,
    auth: PropTypes.bool,
    authError: PropTypes.string,
    touristLogin: PropTypes.bool,
    lang: PropTypes.string,
    langList: PropTypes.array,
@@ -110,9 +111,9 @@
    e.preventDefault()
    if (!this.props.auth) {
      warning({
        title: this.props.dict['login.auth.tip'],
        okText: this.props.dict['login.auth.ok'],
        cancelText: this.props.dict['login.auth.cancel'],
        title: this.props.authError || this.props.dict['login.auth.tip'],
        okText: this.props.dict['login.ok'],
        cancelText: this.props.dict['login.cancel'],
        onOk() {},
        onCancel() {}
      })