Several ways to prevent Google from filling in the password box by default.

  1. First catch the content through a password box, and then hide the password box, as follows:
        <input type="password" style="opacity: 0; height: 0px" />
              <el-input
                v-model="password"
                type="password"
                show-password
              ></el-input>
  1. Use the readonly parameter to make the password box unfillable by default, and then trigger the removeAttribute method through the onfocus event to remove the readonly attribute.
	 <el-input
            v-model="password"
            readonly
            onfocus="removeAttribute('readonly');"
          >
          </el-input>

Guess you like

Origin blog.csdn.net/weixin_45807026/article/details/128196621