首页 > 解决方案 > Vue Google Chrome 密码自动填充禁用

问题描述

我尝试在我的登录屏幕上禁用对我的密码输入字段的提醒。这是我的输入字段`

<r-input
        type="text"
        id="login_username"
        width="95%"
        v-model="formJson.username"
        labelColor="white"
        @keyup.enter="handleLogin"
      ></r-input>

我试过 autocomplete=off 但没有用,有什么建议吗?

标签: javascriptgoogle-chromevue.jspassword-protectiongithub-issues

解决方案


试试这个: vue-disable-autocomplete

如何使用

import DisableAutocomplete from 'vue-disable-autocomplete';

Vue.use(DisableAutocomplete);

HTML 属性

<input type="email" name="email" autocomplete="off">


推荐阅读