javascript - 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 但没有用,有什么建议吗?
解决方案
试试这个: vue-disable-autocomplete
如何使用
import DisableAutocomplete from 'vue-disable-autocomplete';
Vue.use(DisableAutocomplete);
HTML 属性
<input type="email" name="email" autocomplete="off">
推荐阅读
- php - 使用 Laravel 干预图像上传到 S3 返回布尔值而不是路径
- c# - 在 Word 2016 中检测比较窗口
- reactjs - 状态返回空数组
- javascript - 如何在从命令行运行时调试 js CLI 应用程序?
- c++ - 如何在包含数字 9 4 3 6 的 .bmp(二进制图像)中执行组件标记?
- kubernetes - 如果我想在 kubernetes 中使用 NodePort,如何知道节点中哪个端口可用
- javascript - 使用 Electron 重新加载后无法访问 SVG DOM
- python - 调用批处理文件从 VBA 运行 python 脚本
- php - 如何在 react-native 中从 php 向 android mobile 发送推送通知?
- c++ - 是否可以通过 PC 重新启动或用户单击应用程序快捷方式来确定 MFC 应用程序正在启动?