perf: has_secret_key

This commit is contained in:
feng
2023-04-04 17:59:37 +08:00
parent b6235ec7dd
commit 1cec999bfd
4 changed files with 12 additions and 3 deletions

View File

@@ -1714,6 +1714,7 @@
"UpdateNodeAssetHardwareInfo": "Update node asset hardware information"
},
"users": {
"Set": "Set",
"Login": "Users login",
"InviteSuccess": "Invite success",
"FileEncryptionPassword": "File encryption password",
@@ -2100,4 +2101,4 @@
"PublishStatus": "Publish status",
"NoPublished": "Unpublished"
}
}
}

View File

@@ -1706,6 +1706,7 @@
"UpdateNodeAssetHardwareInfo": "ノード資産ハードウェア情報の更新"
},
"users": {
"Set": "設定",
"Login": "ユーザー登録",
"InviteSuccess": "成功招待",
"FileEncryptionPassword": "ファイル暗号化パスワード",
@@ -2092,4 +2093,4 @@
"PublishStatus": "投稿ステータス",
"NoPublished": "未発表"
}
}
}

View File

@@ -1697,6 +1697,7 @@
"UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息"
},
"users": {
"Set": "已设置",
"Login": "用户登录",
"InviteSuccess": "邀请成功",
"FileEncryptionPassword": "文件加密密码",

View File

@@ -31,8 +31,13 @@ export default {
data() {
return {
url: '/api/v1/users/profile/secret-key/',
fields: ['new_secret_key', 'new_secret_key_again'],
fields: ['has_secret_key', 'new_secret_key', 'new_secret_key_again'],
fieldsMeta: {
has_secret_key: {
label: this.$t('users.Set'),
type: 'switch',
disabled: true
},
new_secret_key: {
label: this.$t('users.NewPassword'),
el: {
@@ -55,6 +60,7 @@ export default {
onPerformSuccess() {
this.$refs.GenericCreateUpdateForm.$refs.form.$refs.dataForm.resetForm('form')
this.$message.success(this.$tc('common.updateSuccessMsg'))
this.$store.commit('common/reload')
}
}
}