1. 添加auto-complete="new-password"屬性,這是一個新屬性,兼容所有瀏覽器.
<el-input type="password" auto-complete="new-password" v-model="form.password" placeholder="請輸入密碼"></el-input>
2.在表單中創建一個不顯示的input且type等於password:
<input type="password" style="position: absolute;z-index: -999">
轉載自:https://blog.csdn.net/deng1456694385/article/details/88647641。