Skip to content

Commit

Permalink
fix: set password attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
codearhat committed Nov 16, 2022
1 parent f2d8dfc commit a9a3703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/views/_builtin/login/components/Register/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
</div>
</n-form-item>
<n-form-item path="pwd">
<n-input v-model:value="model.pwd" placeholder="密码" />
<n-input v-model:value="model.pwd" type="password" show-password-on="click" placeholder="密码" />
</n-form-item>
<n-form-item path="confirmPwd">
<n-input v-model:value="model.confirmPwd" placeholder="确认密码" />
<n-input v-model:value="model.confirmPwd" type="password" show-password-on="click" placeholder="确认密码" />
</n-form-item>
<n-space :vertical="true" :size="18">
<login-agreement v-model:value="agreement" />
Expand Down
4 changes: 2 additions & 2 deletions src/views/_builtin/login/components/ResetPwd/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
</div>
</n-form-item>
<n-form-item path="pwd">
<n-input v-model:value="model.pwd" placeholder="密码" />
<n-input v-model:value="model.pwd" type="password" show-password-on="click" placeholder="密码" />
</n-form-item>
<n-form-item path="confirmPwd">
<n-input v-model:value="model.confirmPwd" placeholder="确认密码" />
<n-input v-model:value="model.confirmPwd" type="password" show-password-on="click" placeholder="确认密码" />
</n-form-item>
<n-space :vertical="true" size="large">
<n-button type="primary" size="large" :block="true" :round="true" @click="handleSubmit">确定</n-button>
Expand Down

0 comments on commit a9a3703

Please sign in to comment.