解决谷歌密码自动填充
1、为input 密码框 添加autocomplete="new-password" 属性(不知是不是写的有问题,无效)
2、为input 密码框 绑定:readonly="isReadonly" 属性(默认为true)
a、在模态框中使用,在模态框弹出时延迟一秒将isReadonly修改为false,在关闭弹窗时修改为true(不修改的话,下次弹窗弹出时也会填充)
b、在非模态框中使用(不会重复关闭唤起),在mounted阶段将isReadonly改为false
3、<input type="password" readonly onfocus="this.removeAttribute('readonly');"/>

浙公网安备 33010602011771号