禁用浏览器自动给input填充账号和密码
如果input输入框type为text,设置autoComplete="off"
<el-input v-model="ruleForm.loginId" placeholder="请输入工号" autocomplete="off"></el-input>
如果input输入框为password,设置autocomplete="new-password"
<el-form-item label="输入密码" prop="pass" required> <el-input type="password" v-model="ruleForm.pass" placeholder="请输入密码" autocomplete="new-password"></el-input> </el-form-item> <el-form-item label="确认密码" prop="checkPass" required> <el-input type="password" v-model="ruleForm.checkPass" placeholder="请确认密码" autocomplete="new-password"></el-input> </el-form-item>