vue+element-ui 谷歌禁止填充用户名和密码

<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"
posted @ 2020-05-14 10:35  水樱织  阅读(733)  评论(0编辑  收藏  举报