From 01e55d7f6e88d09fec2282d94dfb825e86d1f1ec Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Thu, 18 Apr 2024 11:38:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=85=A8=E5=B1=80=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E8=B5=84=E4=BA=A7=E7=9A=84=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=8F=AF=E8=BF=9E=E6=8E=A5=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Apps/AccountListTable/AccountList.vue | 3 ++- src/views/assets/Asset/AssetDetail/Account.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Apps/AccountListTable/AccountList.vue b/src/components/Apps/AccountListTable/AccountList.vue index 905ed382b..6ba913d48 100644 --- a/src/components/Apps/AccountListTable/AccountList.vue +++ b/src/components/Apps/AccountListTable/AccountList.vue @@ -356,7 +356,8 @@ export default { fa: 'fa-handshake-o', can: ({ selectedRows }) => { return selectedRows.length > 0 && - ['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(selectedRows[0].asset.type.value) === -1 + ['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(selectedRows[0].asset.type.value) === -1 && + !this.$store.getters.currentOrgIsRoot }, callback: function({ selectedRows }) { const ids = selectedRows.map(v => { diff --git a/src/views/assets/Asset/AssetDetail/Account.vue b/src/views/assets/Asset/AssetDetail/Account.vue index 5b366a25c..97d672a59 100644 --- a/src/views/assets/Asset/AssetDetail/Account.vue +++ b/src/views/assets/Asset/AssetDetail/Account.vue @@ -77,7 +77,8 @@ export default { attrs: { type: 'primary', label: this.$tc('accounts.Test'), - disabled: ['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(this.object.type.value) !== -1 + disabled: ['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(this.object.type.value) !== -1 || + this.$store.getters.currentOrgIsRoot }, callbacks: Object.freeze({ click: () => {