1、正确的姿势是:
<input type="password" name="password" autocomplete="new-password">
注:如果没有生效,有可能是 vue的组件重用机制,所以你要修改所有。