Browse Source

记住账号密码

liudan 4 days ago
parent
commit
c0a303a911
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/pages/login/Login.jsx

+ 3 - 0
src/pages/login/Login.jsx

@@ -1455,6 +1455,7 @@ class Login extends React.Component {
                                                                 maxLength={12}
                                                                 prefix={<Icon type="lock" />}
                                                                 type="password"
+                                                                autoComplete="new-password"
                                                                 placeholder={`请输入CA证书密码`}
                                                                 onKeyUp={(e) => { this.handleEnterCAPassword(e); }}
                                                             />
@@ -1471,6 +1472,7 @@ class Login extends React.Component {
                                                         <Input
                                                             size="large"
                                                             allowClear={true}
+                                                            autoComplete="username"
                                                             prefix={<Icon type="user" />}
                                                             onChange={(e) => { this.resetForm(e) }}
                                                             ref={(input) => { this.userName = input; }}
@@ -1505,6 +1507,7 @@ class Login extends React.Component {
                                                             maxLength={12}
                                                             prefix={<Icon type="lock" />}
                                                             type="password"
+                                                            autoComplete="current-password"
                                                             placeholder={language.LoginLoginErr2 && language.LoginLoginErr2.message || `请输入密码`}
                                                             onKeyUp={(e) => { this.handleEnterPassword(e); }}
                                                             // onBlur={(e) => { this.getDepartmentListByLogin(e) }}