From 4c94694e788bb55b2d21a11eab8dc3274558d89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Tue, 1 Nov 2022 11:49:33 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=AF=86=E7=A0=81=E5=B1=95=E7=A4=BA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PasswordHistoryDialog.vue | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/src/components/AccountListTable/PasswordHistoryDialog.vue b/src/components/AccountListTable/PasswordHistoryDialog.vue index ced686122..cfbde503b 100644 --- a/src/components/AccountListTable/PasswordHistoryDialog.vue +++ b/src/components/AccountListTable/PasswordHistoryDialog.vue @@ -27,26 +27,17 @@ export default { width: '60%', tableConfig: { url: `/api/v1/assets/account-secrets/${this.account.id}/histories/`, - columns: [ - 'name', 'version', 'password', 'date_created' - ], - columnsShow: { - min: ['name'], - default: [ - 'name', 'version', 'password', 'date_created' - ] - }, - columnsMeta: { - name: { - showOverflowTooltip: true - } - } + columns: ['secret', 'secret_type', 'version'] }, headerActions: { hasImport: false, hasExport: false, hasLeftActions: false, - hasColumnSetting: false + hasColumnSetting: false, + hasSearch: false, + searchConfig: { + getUrlQuery: false + } } } }