禁止浏览器提示密码

609 阅读1分钟

最近的一个需求,要求页面的重置密码输入框,当密码框聚焦的时候不要出现提示信息,但是因为之前在登录的时候已经选择让浏览器记住密码了,因为登录是需要提示,所以现在几乎是不可实现的。

autoComplete='off' 无效 谷歌96

type='password' autocomplete='new-password' 无效 谷歌96

<el-input style="position:fixed;bottom:-9999px" /> 无效 谷歌96 
<el-input           
v-model="formData.account"           
maxlength="11"           
clearable           
autocomplete="new-password"           
placeholder="请输入您的手机号"           
@keyup.enter.native="enterClick"         
>