The element-ui password input box adds the show-password attribute, and the password + account name problem will be automatically filled in when the pop-up window is opened

question:

  • Click the Change Password button to display a pop-up window (as shown below), in which the password will be automatically filled directly, and the account name will be automatically filled in the input box of the verification code
  • This also happens when there are multiple password pop-up windows on the page. [My situation is: the same pop-up window is used for changing the password and changing the mobile phone number, and the v-if is used to judge the displayed content (because there are logics related to sending verification codes and counting down the validity period of verification codes), so clicking both buttons will This popup pops up.

(As shown below)

 Solution: On the password input box, add autocomplete="new-password" . (As shown below)

Tips: It is also said that if there are multiple el-forms, set multiple el-forms. Because of mutual influence, I tried it and it didn’t work. If the above method does not work, you can try this method.

 

Guess you like

Origin blog.csdn.net/Shimeng_1989/article/details/127694679