Skip to content

Commit

Permalink
fix: 修复账号列表添加账号时会明文显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie committed Aug 16, 2023
1 parent 17fd374 commit 2360da5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/AccountCreateUpdateForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ export default {
form.secret = form[secretType]
form.secret = this.encryptPassword ? encryptPassword(form.secret) : form.secret
// 如果不删除会明文显示
delete form[secretType]
if (!form.secret) {
delete form['secret']
}
Expand Down

0 comments on commit 2360da5

Please sign in to comment.