perf: 修改 terminal 权限

This commit is contained in:
ibuler
2022-03-15 20:07:46 +08:00
committed by Jiangjie.Bai
parent 484b71cbc9
commit e11e2bfb46

View File

@@ -50,7 +50,9 @@ export default {
{
title: this.$t('xpack.ComponentMonitor'),
name: 'Monitor',
hidden: () => !this.$hasPerm('terminal.view_terminal')
hidden: () => {
return !this.$hasPerm('terminal.view_terminal') && this.$store.getters.hasValidLicense
}
}
]
}