feat: 历史账号定期删除 可设置保留数量

This commit is contained in:
feng
2024-01-02 19:10:28 +08:00
parent fa9281aa92
commit c563697efd
2 changed files with 8 additions and 3 deletions

View File

@@ -60,8 +60,8 @@ export default {
], ],
encryptedFields: ['VAULT_HCP_TOKEN'], encryptedFields: ['VAULT_HCP_TOKEN'],
fields: [ fields: [
[ [this.$t('common.Basic'), ['HISTORY_ACCOUNT_CLEAN_LIMIT']],
this.$t('setting.AccountStorage'), [this.$t('setting.AccountStorage'),
[ [
'VAULT_ENABLED', 'VAULT_ENABLED',
'VAULT_HCP_HOST', 'VAULT_HCP_HOST',
@@ -71,6 +71,11 @@ export default {
] ]
], ],
fieldsMeta: { fieldsMeta: {
HISTORY_ACCOUNT_CLEAN_LIMIT: {
el: {
autocomplete: 'new-password'
}
},
VAULT_ENABLED: { VAULT_ENABLED: {
disabled: true, disabled: true,
label: this.$t('setting.EnableVaultStorage') label: this.$t('setting.EnableVaultStorage')

View File

@@ -38,7 +38,7 @@ export default {
{ {
title: this.$t('setting.AccountStorage'), title: this.$t('setting.AccountStorage'),
name: 'Vault', name: 'Vault',
hidden: !this.$hasPerm('settings.change_vault') || !this.$store.getters.hasValidLicense hidden: !this.$store.getters.hasValidLicense
}, },
{ {
title: this.$t('setting.ChatAI'), title: this.$t('setting.ChatAI'),