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'],
fields: [
[
this.$t('setting.AccountStorage'),
[this.$t('common.Basic'), ['HISTORY_ACCOUNT_CLEAN_LIMIT']],
[this.$t('setting.AccountStorage'),
[
'VAULT_ENABLED',
'VAULT_HCP_HOST',
@@ -71,6 +71,11 @@ export default {
]
],
fieldsMeta: {
HISTORY_ACCOUNT_CLEAN_LIMIT: {
el: {
autocomplete: 'new-password'
}
},
VAULT_ENABLED: {
disabled: true,
label: this.$t('setting.EnableVaultStorage')

View File

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