From 17748c56c93d0a76a5de3226519740cc52933528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Thu, 15 Jun 2023 10:58:36 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=B5=84=E4=BA=A7=E5=88=97=E8=A1=A8=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=93=8D=E4=BD=9C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assets/Asset/AssetList/components/BaseList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/assets/Asset/AssetList/components/BaseList.vue b/src/views/assets/Asset/AssetList/components/BaseList.vue index 08ff61170..3cbcba444 100644 --- a/src/views/assets/Asset/AssetList/components/BaseList.vue +++ b/src/views/assets/Asset/AssetList/components/BaseList.vue @@ -192,8 +192,8 @@ export default { can: ({ row }) => this.$hasPerm('assets.test_assetconnectivity') && !this.$store.getters.currentOrgIsRoot && - row['auto_config'].ansible_enabled && - row['auto_config'].ping_enabled, + row?.auto_config?.ansible_enabled && + row?.auto_config?.ping_enabled, callback: ({ row }) => { if (row.platform.name === 'Gateway') { this.GatewayVisible = true