perf: 优化自定义资产列表不显示操作问题

This commit is contained in:
“huailei000”
2023-06-15 10:58:36 +08:00
committed by huailei
parent d880e5cb8c
commit 17748c56c9

View File

@@ -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