About the configuration of the Element form to automatically load the userName and passowrd fields

In the user registration form, if the user information stored in cookies is automatically loaded, it can be solved by setting autocomplete="new-password"

        <el-form-item label="用户名" prop="userName">
          <el-input v-model="addForm.userName"></el-input>
        </el-form-item>
        <el-form-item label="密码" prop="password">
          <el-input v-model="addForm.password" autocomplete="new-password" show-password="true"></el-input>
        </el-form-item>

insert image description here
After solving:
insert image description here

Guess you like

Origin blog.csdn.net/lzl980111/article/details/124488950