![](https://i-blog.csdnimg.cn/blog_migrate/52f72180c801e65b1a5869d6e07bf58e.png)
技术:vue+Ant-Design
忘记密码时,邮箱密码应该是要置空的,但是密码框会自动填充上已记住的密码,然后随机给其他输入框附上账号
以下两种方法均可避免被赋值,只需要在密码框输入任一一种方法即可
1,
type="password" auto-complete="new-password" autocomplete="new-password"
<a-input type="password" auto-complete="new-password" autocomplete="new-password" v-model="newPassword"></a-input>
2, :type="type" @focus="type='password'"
<a-input type="password" :type="type" @focus="type='password'" v-model="newPassword"></a-input>