<el-form-item prop="pwd"> 2 <el-input 3 v-model="ruleForm.pwd" 4 placeholder="密码" 5 type="password" 6 @keyup.enter.native="handleLogin('ruleForm')" 7 maxlength="12" 8 auto-complete="new-password" // 添加这行 9 ></el-input> 10 </el-form-item>
auto-complete="new-password"